- Home /
Question by
porrasm · Jul 30, 2020 at 12:08 PM ·
lightingdirectional lightdaycycledaynight
Implementing a day and night cycle
I have implemented a day/night cycle using 2 directional lights, the sun and moon. They both vary in intensity and have different ranges. They ranges overlap, meaning in the morning and evening both lights are on at the same time. It seems that the Universal Render Pipeline only allows one directional light. While both of them provide light, only one of the casts shadows.
My question is what is the best practice of implementing a day/night cycle with a sun and a moon? Technically I could add spotlight to cast shadows but that seems like a hacky way to go about this.
untitled.png
(49.5 kB)
Comment