- Home /
Free Unity, with realtime shadows?
So, I understand that in the free version, the possibility of using realtime shadows is limited to one light source. I want to create a day/night cycle, but didn't have time to test any of this yet (and won't have in a while, so I kindly ask to tap into the higher knowledge of ye master Unity users).
The directional light can create shadows, and only one of them. So one source of shadows. Can I have this light orbit around the map and cast shadows on trees and such? Maybe even push it so far that the same light becomes the moon and then casts weaker shadows?
Anyways, please let me know if someone was able to find a workaround for the free users. Thanks!
Answer by supernat · Apr 05, 2014 at 12:52 AM
I don't know about other workarounds, but a directional light doesn't change based on position. It produces light globally in the same direction, so only the rotation angles of the light are used in the calculations.. So indeed you can get a reasonable approximation of sun and moon with it since those behave like directional lights on the micro scale. All you have to do is increase intensity toward noon and change the angle to 90 deg down at noon toward 0 degrees in the same direction as your sun model.
So,it's possible to have a directional light spin around the world and throw shadows? ($$anonymous$$d you I am talking about a huge world :) )
Your answer
![](https://koobas.hobune.stream/wayback/20220613141941im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Black stripes shadows 4 Answers
Hard shadows glitching geometry in Android 1 Answer
Shadow texture? 0 Answers
Hard directional shadows? 3 Answers
Terrain with Baked and Realtime Shadows 0 Answers