0
Not a bug

Weird alpha effect

André 7 years ago updated 7 years ago 1

Hi! I'm trying to create a water shader. I'm using tesselation to subdivide it and then a displacement map to create waves. When the camera is between two waves, the water looks really weird as seen in the picture. I'm guessing it's got something to do with the transparency. Could i somehow make it so that the water is not seen through itself?

Image 767

Answer

Answer
Not a bug

I figured it out. When I checked "Write to depth buffer" it worked as intended :)

Answer
Not a bug

I figured it out. When I checked "Write to depth buffer" it worked as intended :)