I’m almost done working on Onkba’s example, but there’s something I don’t understand.
Why does the specular method needs to be added to unrelated materials in order to work at all ? Let’s be more clear:
//create gobal specular method
_specularMethod = new FresnelSpecularMethod();
_specularMethod.normalReflectance = 1.5;
// ....
_groundMaterial.specularMethod = _specularMethod;
_heroMaterial.specularMethod = _specularMethod;
_gunMaterial.specularMethod = _specularMethod;
For the ground to be affected by the specular method, we need to at least pass the method to the ground AND one of the 2 models’ material. (i.e. gun or hero, or both)
If _specularMethod is only added to the ground and none of the other meshes, the ground is NOT affected.
Why is that ?
Thanks for your help!
(I have a second question related to Onkba’s example that might have been missed, here. It’s about why that example adds lights to the scene while it doesn’t seem necessary and possibly impacts performance. Merely adding them to a LightPicker seems to provide all desired functionalities so I don’t get it ^^)