Hi everybody,
due to some performance issues I’m trying to diable
shadow rendering for one Light through a script.
When I turn off shadows in the Editor the framerate
will increase significantly but the framerate
won’t increase when I’m turning off the shadows
in my script.
Until now I have disabled all Projectors (as recommended here: http://forum.unity3d.com/viewtopic.php?t=1332
and set shadowDistance = 0 in my light source.
The shadows are not visible anymore but the
framerate remains low.
Is it actually possible to disable shadows ingame?
If yes, what am I missing?
light.shadows = LightShadows.None?
Thanks!
Exactly what I was looking for. ![]()