- Home /
Object drops shadow without accepting light
Hi everyone! Actually I want my object to cast shadows let's say from 1-st light source (Directional Light) affecting, but without accepting it's illumination. For this purpose I'm gonna use 2-nd light source (Point Light) and put light to an object only from that light source but this time without casting any shadows. I guess it's up to work with different layers, but after a few days of brainstorming I still got no clue. Is it possible to create such an effect? Thanks in advance for your help! :D
This sounds like a good opportunity to use a custom shader. I've played around with shaders but don't know enough to help you out with this particular one unfortunately.
Could you help me then solving a problem with this shader here?: link text
Answer by 12aithe · Feb 24, 2013 at 02:07 AM
I'm not sure what you are asking for here : you want to create a shadow with unity FREE or shadows that are not affect by light illumination?! Well : if you do not want to cast shadows there is option for shadow from each light .... like if Directional light it has options for cast parameters..... Or you mean like light mapping not Real - Time shadows?
Or do you mean for example :
A ( Direction Light ) - Does cast shadows but has not actual light " B - Have a point light that does not cast shadows just the light"
if A and B is TRUE :
For direction light make sure shadow type is of you're choice ... other then no cast shadows in drop down take intensity to 0 ....
Then on point light uncheck the cast shadow check boxes and have you're choice of intensity on the object..... basicly saying the sun is the only shadows you want create and the point light will not affect the position on which the sun is casting.
I dont have pro but I think you would do as follow
Set Directional light : to a
Thanks for the answer! Talking about A and B you got it right (I'm working with PRO version). But I've already tried this method and unfortunately it's not working. The thing is when you drop the intensity down on Directional Light which is relatively linked to the shadow casting, shadows won't cast in that case. I'm not quite sure if I get your words right? Btw what did you mean by setting Directional Light : to a?