Post Processing Outlines Do Not Appear When Sky Sphere Is Excluded

I have a post processing material which creates outlines around objects. I use a custom stencil value to determine how the normal lines are drawn on objects so I can customize it for things like landscapes. For the Sky Sphere, I completely exclude it from the post processing, since the normal lines get drawn on the grid for it. This works fine for the Sky Sphere, but it causes another problem. Any object that sits in front of the Sky Sphere will not get outlines drawn on it. Is there a way to make sure outlines don’t appear on the Sky Sphere, but appear on all other objects even if they sit in front of the Sky Sphere?

Screenshots:



Hi @User-31e3dcabf2,

Yeah! The common practice here is to use Scene Depth as a mask to keep your postprocess materials from affecting your sky / anything beyond a certain distance.

This completely fixed this issue, thank you so much!