Is there a way to outline silhouette of an object when it is fully or partially blocked by another object (not making foreground object transparent)?

Hello!

Probably, I will have to port this shader – Silhouette-Outlined Diffuse - Unify Community Wiki if no one did this before. I searched through forum and playground, all I found are examples of renderOutline. Ok, maybe it is what I need, but how do I make it drawn above/on blocking object?

So we have several options for outline rendering:

But unfortunately not the precise one you need as it is a bit too β€œniche” :slight_smile: So you may end up writing your own shader (technically it is a mix of a regular mesh.renderOutline + mesh.renderOverlay. The only difference is that mesh.renderOverlay must be done with depthFunction set to greater instead of lower)

1 Like