好像是的!
这里忽略了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;在这里起作用了!
ambientLight = [SCNLight light];
ambientLight.color = [UIColor colorWithRed:0.994 green:0.715 blue:0.179 alpha:1.000];
ambientLight.type = SCNLightTypeOmni;
ambientLight.categoryBitMask = 1;发布于 2015-03-22 13:47:14
没错,环境光的categoryBitMask被忽略了(缺乏文档)。请注意,您可以将材料配置为忽略环境照明:
aMaterial.locksAmbientWithDiffuse = NO;
aMaterial.ambient.contents = blackColor; (the default)https://stackoverflow.com/questions/29190578
复制相似问题