jean-moreno / EdgeDetect-PostProcessingUnity

Unity legacy Edge Detect image effect ported to Post Processing Stack v2
296 stars 32 forks source link

Edge Detection and Fog #10

Closed FlaxenFlash closed 5 years ago

FlaxenFlash commented 5 years ago

We we previously using the v1 stack on Unity 2017 with the old legacy Unity edge detection script. We've just updated to 2018, the v2 stack and started using this effect with the stack. The only issue we have run into is that the outlines are now drawing on top of the fog. Is it possible to change this or is it related to how fog is applied in the post processing stack now?

jean-moreno commented 5 years ago

I looked into it, and currently it doesn't seem like you can trigger an effect before the fog:

FlaxenFlash commented 5 years ago

Thanks for looking into that. I guess I can just modify the post processing stack then. We don't have any other custom effects that would be messed with by changing the order that fog and BeforeTransparent are applied. It seems like SSAO should suffer from a similar problem though and it doesn't. I wonder how that works.