Hello, I’ve been trying to replicate a simple fog effect from this video. It works fine in the editor and as it’s own scene, but it doesn’t display when my entire game is running. The Nodes ParallaxBAckground/Layer/ColorRect do appear in the Remote tree, but they are just invisible.
I’m stuck on this for days and I exhausted every possibility I could think of before posting this topic (I read the other similar topics too without finding what is causing this.)
What do you mean by “settings all the uniforms in the game”? I do not modify them outside of this script. I tried tweaking them in the Inspector but nothing changed.
First determine if the problem is shader itself or your node setup. Assign a dummy shader that outputs flat color and see if its drawn when you run the project.
You aren’t assigning COLOR.rgb. I’m not sure what default values they get, which could be any preset color or “whatever was in that memory”. It might differ depending on where it runs.
I’d suggest setting it to vec3(1.0, 0.0, 1.0) and see if you get magenta fog.
This was the answer, thank you so much!
I recreated the Scene node by node, starting with a dummy texture like you suggested. Then I made sure it stays visible in game with each step, until it was complete and finally visible.
I still don’t understand why the original is invisible since its parameters are identical to the copy, though.