Hello,
I have 4 spheres inside each other. The first sphere is the ocean floor. The second sphere is the water level. The third sphere is the clouds and the fourth sphere is the sky. The ocean floor has a shader called, “outer” to render the outside of the sphere. All the other spheres have a shader called, “inner” which renders from the inside of the sphere and are also transparent (which uses the alpha channel). I also have ZTEST set to ALWAYS meaning to render spheres that are inside or outside of other spheres (to render always), but I don’t know how to tell Unity to render the sky first, the clouds second, the water level third, and the ocean floor last. I get flickering when I move the camera around in my game window (as the 4 spheres render randomly in random order depending on the camera’s position). Is there any way to fix that?
Thank you,
Michael S. Lowe