The SpotLightComponent is used to add a spotlight as a child to an entity.
Description
The SpotLightComponent
is used to add a spotlight as a child to an entity.
Usage
- Attach the component to a game entity.
- Adjust the properties to customize the appearance and behavior of the spotlight.
Dependencies
Has no dependencies.
Properties
range
- Type:
FLOATING
- Description: Represents the range of the spotlight. Adjusting this property changes how far the light reaches.
attenuation
- Type:
FLOATING
- Description: Represents the attenuation of the spotlight. Higher values result in faster light falloff.
angle
- Type:
FLOATING
- Description: Represents the angle of the spotlight. Adjusting this property changes the width of the light cone.
angle_attenuation
- Type:
FLOATING
- Description: Represents the angle attenuation of the spotlight. Higher values result in a more gradual transition between the lit and unlit areas.
color
- Type:
COLOR
- Description: Represents the color of the spotlight. Define the desired color using the RGBA format.
energy
- Type:
FLOATING
- Description: Represents the energy of the spotlight. This property controls the overall brightness of the light.
specular
- Type:
FLOATING
- Description: Represents the specular intensity of the spotlight. Adjust this property to control the shininess of the lit surfaces.
shadow
- Type:
BOOL
- Description: Enables or disables shadows for the spotlight. Set to
1
for enabled, 0
for disabled.
shadow_color
- Type:
COLOR
- Description: Represents the color of the spotlight's shadows. Define the desired color using the RGBA format.
bias
- Type:
FLOATING
- Description: Represents the bias of the spotlight's shadows. Adjust this property to control shadow precision.