Night-like effect with Light2D

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

I’m looking to simulate a day/night cycle , where during the night there are lights that turn on and look like they are lighting the area around them. Similar to this

How do I achieve the dimming effect of the scene such that the light nodes will act in the way I expect?

:bust_in_silhouette: Reply From: johnygames

There is a node called CanvasModulate and what it does is it tints the whole canvas with the color of your liking. Use it in conjunction with an AnimationPlayer node in order to create your day/night cycle. Give it a gradual blue-ish tint that turns to yellow as the dawns breaks. Also make sure to give your scene the right contrast by lowering and increasing the Light2D’s intensity as you see fit.

What mode should be used for the Light2D node?

Eric Ellingson | 2019-08-11 15:34

I would use either add, to keep more of the contrast, or mix, to keep more of the saturation. It’s really up to you and your scene. Experiment with different settings and see wht works best. For a night scene I would choose Add, because I care more about that subtle tinting effect that it offers.

johnygames | 2019-08-11 17:11