I have two semitransparent objects: skysphere and water sphere. I cant make them to render properly. Its ither sky always renders above water, even when camera is under sky and above water, or water always above sky, even when camera is above sky. Any way to sort them properly? I tried to make water opaque, but then ZWrite Off dont working, and I need depth texture that excludes water.
What I usually do when I need transparent objects to render in a specific order, is make a shader for each of them, and specify their render queue offsets to force them to be drawn in the order I need.
1 Like
I also use this practice, but in this case they must be rendered in different order depending on camera position. Whel, one of three pases of one shader. Looks like best way is to make separate shader with it’s own queue order for that pass.