x


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.

more ▼

asked Jan 12 '11 at 02:30 PM

Statement gravatar image

Statement ♦♦
20.1k 35 70 175

By far the easiest thing to do is just model both sides; duplicate the polygons and flip the normals.

Jan 12 '11 at 08:05 PM Eric5h5

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.

Jan 12 '11 at 09:14 PM Statement ♦♦

Thanks for turning me on to this shader, just what I needed for my project.

Jan 13 '11 at 09:16 PM DaveA
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

have you tried the "tree soft occlusion leaves" shader ?

more ▼

answered Jan 18 '11 at 01:16 PM

backface gravatar image

backface
17 1 1 1

ya that doesn't do it either

Mar 28 '11 at 11:26 PM shawnkilian
(comments are locked)
10|3000 characters needed characters left

you need to do "transparent --> cutout --> Soft Edge Unlit"

more ▼

answered Mar 25 '11 at 03:35 AM

shawnkilian gravatar image

shawnkilian
361 21 28 41

Did you bother to read the question in any detail? 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.*

Mar 25 '11 at 12:47 PM Statement ♦♦

I did read it in detail. I obviously mis-read it and made a mistake.

It was late and I was just trying to help.

no need to be rude.

Mar 26 '11 at 04:03 AM shawnkilian
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1650
x216
x22

asked: Jan 12 '11 at 02:30 PM

Seen: 3074 times

Last Updated: Mar 25 '11 at 12:52 PM