- Home /
Transparency question
Hello.
Is it possible to make objects transparent without them showing their hidden parts? Like if you bake 2d sprites from non-transparent model and then add transparency to sprites.
Answer by Namey5 · May 27, 2021 at 09:36 AM
This can be done by using a transparent shader with a depth prepass. An example of a shader that does this can be found on this page in the legacy Unity manual (it seems that the page has been removed in more recent versions) under "Transparent shader with depth writes";
https://docs.unity3d.com/2017.2/Documentation/Manual/SL-CullAndDepth.html
Your answer
Follow this Question
Related Questions
Render parts of a scene semi-transparent 1 Answer
How to hide elements behind a transparent panel 0 Answers
Fade object transparency evenly from the edge inward 0 Answers
How to make mesh-render mode particles fade out? 2 Answers
Unity System Fog Access 0 Answers