How can I get daylight and darkness

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jujumumu

I want a system like terrarias. During the day its bright on the surface and it penetrates through a couple of blocks. But then it gets darker when you go underground.

:bust_in_silhouette: Reply From: SpkingR

I think you can achieve this by utility the CanvasModulate and Light2D/LightOccluder2D nodes, the CanvasModulate can affect the whole system color, like bright or darken the environment.
I do not ever try this effect, but I think you can give it a try, and figure it out.

Using canvas modulate changes the whole scene which is not what I want, I want more of a sun that shines on the ground.

jujumumu | 2019-12-17 05:14