I have this Pokemon style gradient shader, it fades the screen according to a gradient texture. Here is the NME, you can slide the “cutoff” float to see the shader in action. Babylon.js Node Material Editor
My issue is, in engine, when I load the NME file, it flashes what ever my color3 is, even though it shouldn’t show anything as the texture and cutoff is at its 0th position.
Here it is in engine
(press the play button to see it flash red)
It should not flash red and doesn’t do this in the NME
Is this an issue with my nodes or is there an issue in-engine?
This is due to the texture not being ready on the first frames. I am trying to find a way to
“wait” for them in the loading but nothing great at the moment.