Tutorial: Expression Enhancement Course #2 – Using Light and Shadow

STEP 3: Try Using DirectionalLight2D

  1. Open the game_scene tab and add a DirectionalLight2D node as a child of BaseLayer.
  2. The screen may become extremely bright, so reduce the Energy to around 0.4.
  3. DirectionalLight2D simulates sunlight.
    If you set the Color to bluish tones, it will resemble nighttime or dawn.
    If you set it to reddish tones, it can look like sunset.
  4. You can also enable Shadows to generate shadows.
    By default, the light shines directly from above.
    Adjust the Rotation in the Transform section to set the light direction at an angle, which gives a more natural appearance.

That concludes Tutorial: Visual Effects Course #2 – Lights and Shadows.
Next tutorial: