- Home /
Why has my refractive water shader become reflective
So I was making a water shader in unity and well it looked fine in the scene view but as soon as I went into the game view the refraction texture basically flipped up 180 degrees and made it look like the water was reflective. The problem with this is that it breaks the transparency of the shader.
Scene View (how it should look): ![alt text][1]
Game View (how it does look): ![alt text][2]
Shader: (Couldn't upload more than two attachments but the important bit is basically a grab texture and a Normalized screen position (
unity-problem-1.png
(426.6 kB)
unity-problem-2.png
(433.4 kB)
Comment
I'm assu$$anonymous$$g you are using GrabPass for the refraction. If you are, the image screws itself over in forward rendering, so if you are using it, try deferred.