Jos*_*les 5 objective-c ios scenekit
好像!
这里categoryBitMask被忽略:
ambientLight = [SCNLight light];
ambientLight.color = [UIColor colorWithRed:0.994 green:0.715 blue:0.179 alpha:1.000];
ambientLight.type = SCNLightTypeAmbient;
ambientLight.categoryBitMask = 1;
Run Code Online (Sandbox Code Playgroud)
在这里工作!
ambientLight = [SCNLight light];
ambientLight.color = [UIColor colorWithRed:0.994 green:0.715 blue:0.179 alpha:1.000];
ambientLight.type = SCNLightTypeOmni;
ambientLight.categoryBitMask = 1;
Run Code Online (Sandbox Code Playgroud)
Toy*_*yos 10
没错,环境光的categoryBitMask被忽略(文档缺乏).请注意,您可以配置材质以忽略环境光照:
aMaterial.locksAmbientWithDiffuse = NO;
aMaterial.ambient.contents = blackColor; (the default)
Run Code Online (Sandbox Code Playgroud)