michaelcurtiss / UnityOutlineFX

Implementation of Unity's Editor outline for runtime. Shader code taken from: https://forum.unity.com/threads/selection-outline.429292/#post-2776318
MIT License
57 stars 19 forks source link

Depth Issues #4

Open wormszer opened 4 years ago

wormszer commented 4 years ago

I was having some weird depth issues with unity 2019.2.17f1. I am not sure if this is something that changed but the fix was to change the camera target when creating the command buffer from BuiltinRenderTextureType.CurrentActive to BuiltinRenderTextureType.Depth.