View on GitHub

ezEngine Documentation

The documentation for ezEngine

Directional Light Component

The directional light component adds a light source that illuminates the entire scene from one direction. This is typically used for sun light. Since directional light affects everything, it isn’t possible to cast shadows everywhere. Instead, shadows are restricted to a region around the camera and objects that are too far away from the camera, won’t cast shadows.

Directional Light

You can use multiple directional light sources, for example if you want directional ambient light, however, for performance reasons only one directional light should cast shadows.

Component Properties

See this page for shadow related component properties.

See Also