I’m interested to know this too!
Ok so I’ve found out that I need a SceneTexture with the Custom Depth id and a ComponentMask to filter effects on to custom depth.
But now I can’t figure out how to connect those with the Lerp.
I just can’t figure out how I can filter this outline effect to custom depth using objects. This is the post-process effect from the Stylized Render example.
Well I finally solved it. The problem was in the Stylized Render example and thus did not need to add anything new.
The problem was the Lerp that the 1-x connected to, as Lerp doesn’t take values other than from 0 to 1 when I was imputing a value which was a 1 to 2.
To solve this, just subtract the alpha with the 1-x and remove the constant. The comment was also incorrect as only meshes with the custom depth use this effect.
Yes this fixes the issue! good job!
-Samuelb