- Home /
Directional Light Shadows with Cookies
Hi. Is it possible to have a directional light with both a tiled cookie and shadows? Without the cookie I get the shadow fine, but when I add a cookie I no longer get shadows. I am using the light/cookie for underwater caustics, but it doesnt look right for shadowed areas.
Thanks for any help
Answer by LukaKotar · Apr 23, 2012 at 10:00 PM
I found out! :D
You have to set up one or more lights to drop shadows. Any light will do fine.
Click on it, and select a shadow type from "No Shadows" to "Hard Shadows" or "Soft Shadows".
Go to "Edit>Project Settings>Player", and click on "Other Settings" at the bottom of the Inspector. Now look for "Rendering Path*" and change it from "Forward" to "Deferred Lighting".
It will also work with with all kinds of lights :)
Is it really required to use Deferred Lighting to have both dynamic shadows and light cookies? I don't see docs specifically saying this, and Deferred lighting has it's cost..