Hi, I’m having an issue when using mesh visibility, material alpha and material needDepthPrePass together.
In order to avoid the XY problem I’ll explain what I’m trying to achieve. I have a mesh that has a translucent material and contains other fully opaque meshes. I want the outer material to look like a silhouette but I still want to see the items inside clearly.
When I transition between views I show and hide inner meshes by changing their visibility but when they are obscured by the outer mesh they pop in or out of existence rather than nicely fading.
Here is an example of what’s happening
Here is why I’m using needDepthPrePass to stop the outer mesh looking messy