Been working on this issue pretty much all day and not getting anywhere. I’m not really sure what’s wrong so hopefully someone here can point me in the right direction.
I am importing a model as a AS3 class - exported from Prefab
I declared an array before the constructor for the lights and in the initLights function push the lights into the array. I then used LightsHelper to add the lights to the materials (all ColorMaterials) on the model and everything works fine up to that point.
Later in the Class, I have a function that changes the color of a specific mesh and again used LightsHelper to add the scene lights to the materials. The color of the material changes but no shading.
I added a few trace statements to make sure the lights were added to the array and its showing they are. So according to the code and the trace statements everything should be working fine but I’m not getting a shaded material.
Ive also tried this using a StaticLightPicker (declaring it before the constructor and initializing in initLights function) instead of LightsHelper and am getting the same results: color changes with no shading.
Any thoughts?
Thanks,
David