Directional Light Component

The DirectionalLightComponent is used to add a directional light as a child to an entity.

Description

The DirectionalLightComponent is used to add a directional light as a child to an entity.

Usage

  1. Attach the component to a game entity.
  2. Adjust the properties to customize the appearance and behavior of the directional light.

Dependencies

Has no dependencies.

Properties

color

  • Type: COLOR
  • Description: Represents the color of the directional light. Define the desired color using the RGBA format.

energy

  • Type: FLOATING
  • Description: Represents the energy of the directional light. This property controls the overall brightness of the light.

specular

  • Type: FLOATING
  • Description: Represents the specular intensity of the directional light. Adjust this property to control the shininess of the lit surfaces.

shadow

  • Type: BOOL
  • Description: Enables or disables shadows for the directional light. Set to 1 for enabled, 0 for disabled.

shadow_color

  • Type: COLOR
  • Description: Represents the color of the directional light's shadows. Define the desired color using the RGBA format.

bias

  • Type: FLOATING
  • Description: Represents the bias of the directional light's shadows. Adjust this property to control shadow precision.