So I’m seeing what appears to be a very strange bug. I have an Object3DContainer with several children. If I do this:
child1.visible = false;
child2.visible = true;
The very next frame I see child2 as visible, but with the only diffuse and specular light, NO ambient light applied.
Then on the 2nd frame, I see child2, lit correctly.
After my app has been running awhile, it seems to stop happening, but the first time I do this, it always happens.
It appears as a flash when I’m running at 60fps, but if i set my frame rate low I can clearly see child1, visible, and lit without any ambient.
I have verified that both PointLight and DirectionalLight do not have their ambient applied during this one frame.
In my screenshot you can see the dark blocks, these are the ones that just had their visible property set to true on the previous frame.
I should add that I’m using a stage proxy because I have Starling running my HUD layer.
I could be doing something wrong, but I dont think so. I think it might be a bug. Any suggestions?
Thanks!
Craig