STEP 3: Try Using DirectionalLight2D
- Open the
game_scenetab and add aDirectionalLight2Dnode as a child ofBaseLayer.
- The screen may become extremely bright, so reduce the Energy to around
0.4. DirectionalLight2Dsimulates 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.
- 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:


