You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fog must be present in scene on the first render, you can't add fog in runtime (as this is baked into shader), if you need to go from zero to some fog, you should start with fog that's invisible
you can't change fog type in runtime (linear / exponential), as also this is baked
fog affects only objects you render, for untouched pixels in the background you need to set clear color to match fog color
Is there any dirty flags for making fog change colors at runtime?
I tried doing like
scene.fog.color.setRGB(1,0,0);
but this seems to be of no effect.The text was updated successfully, but these errors were encountered: