unity-game-engineshaderocclusion-culling

Unity 5 occlusion culling with Outline Shader


I have a model of the brain that is using the "Outline Only" shader from the UnityWiki. I love the look aside from the opaque patches where the separate shapes overlap. Shown in link below.

Example of what it looks like

enter image description here

I have been looking into occlusion culling to fix this but I am not sure if there is a better method as it doesn't seem to be working for this? Maybe there is a way to manipulate the shader to account for it?

Any tips in the right direction would be awesome! Best, Jen


Solution

  • *Update.

    I was able to solve this problem of overlapping shapes by adjusting the culling on the shader. I changed the "Back" pass to Cull Front. Here is the effect.
    outline shader effect