how to NOT render behind geometry using the same shader
Posted: Mon Aug 13, 2018 6:45 pm
Hi, im making a stylized water shader based on the ASE template, everything is looking great, my problem is that if a mesh is behind other water mesh, they both render and the opacity adds, so it looks brighter.
I remember the old "Water4" shader from unity, and this doesnt happen i think, if a mesh is over other with the same shader, it only renders de nearest to the camera.
Example:
How can i fix this with ASE? (sorry if this is a simple thing, im starting with shaders)
I remember the old "Water4" shader from unity, and this doesnt happen i think, if a mesh is over other with the same shader, it only renders de nearest to the camera.
Example:
How can i fix this with ASE? (sorry if this is a simple thing, im starting with shaders)