0
To nie jest błąd

Weird alpha effect

André 7 lat temu zaktualizowano 7 lat temu 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

Odpowiedź

Odpowiedź
To nie jest błąd

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

Odpowiedź
To nie jest błąd

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