- Home /
Is there any double sided shadow casting transparent cutout shader?
In our project we make use of characters that are paper-thin. For this approach we have used the Transparent/Cutout/Soft Edge Unlit shader that render both sides of the model. The problem is that this doesn't allow shadow receive/cast. What I wonder is if there is any known existing shader that can render both sides of an object, cast and receive shadows, and have a transparent cutout threshold?
Update
I made an attempt to modify Transparent/Cutout/Diffuse by adding Cull None. This does indeed render the model with shadows on both sides but since normal is pointing in one direction, lighting doesn't work. Would I have to make this a double pass shader?
Community wiki
Since question is no longer relevant for me (but might be for someone else), I flag this community wiki.
By far the easiest thing to do is just model both sides; duplicate the polygons and flip the normals.
Yes, I realize that. The thing is I am getting these requests that my stakeholder want added, and those are achieving this without having to remodel. For the moment we have remodeled the main character with double faces.
Thanks for turning me on to this shader, just what I needed for my project.
Answer by backface · Jan 18, 2011 at 01:16 PM
have you tried the "tree soft occlusion leaves" shader ?
Answer by Velketor · Mar 25, 2011 at 03:35 AM
you need to do "transparent --> cutout --> Soft Edge Unlit"
Answer by LexGear · Jun 24, 2019 at 09:17 AM
This is old, I know but I'm actually after the exact same thing. Double sided, shadow casting and receiving, transparent shader.
Your answer
Follow this Question
Related Questions
Can I turn off realtime shadows and use a shader to cast realtime shadows? 0 Answers
Particle Cutout that cast shadow ? 2 Answers
Unity Custom CutOut Shader 1 Answer
(SOLVED) How to bake lightmaps with transparent cutout shader ? 2 Answers
Shader: Cutout behavior mixed with masking behavior 0 Answers