In SceneKit, does an SCNLight of type SCNLightTypeAmbient ignore the categoryBitMask parameter?
问题 It seems to! Here the categoryBitMask is ignored: ambientLight = [SCNLight light]; ambientLight.color = [UIColor colorWithRed:0.994 green:0.715 blue:0.179 alpha:1.000]; ambientLight.type = SCNLightTypeAmbient; ambientLight.categoryBitMask = 1; Here it works! ambientLight = [SCNLight light]; ambientLight.color = [UIColor colorWithRed:0.994 green:0.715 blue:0.179 alpha:1.000]; ambientLight.type = SCNLightTypeOmni; ambientLight.categoryBitMask = 1; 回答1: That's right, ambient light's