IronWarrior / UnityOutlineShader

Source code for Outline Shader tutorial for Unity. Detects edges in a scene using the depth and normals buffers.
https://roystan.net/articles/outline-shader
The Unlicense
882 stars 109 forks source link

Depth comparisons not working #5

Open BorisTheBrave opened 4 years ago

BorisTheBrave commented 4 years ago

I tried your tutorial, but the depth based part wasn't working. It was neccessary to set the camera depthTextureMode to DepthTextureMode.Depth before I got good results.

NB: You can probably use DepthTextureMode.DepthNormals to avoid needing a secondary camera.