LDKPointLight
typedef struct LDKPointLight{
u32 color;
float intensity;
float range;
bool enabled;
}LDKPointLight;
Scene light components. Spot angles are half-cone angles in radians. Position and direction come from Transform; forward is local -Z.
typedef struct LDKPointLight{
u32 color;
float intensity;
float range;
bool enabled;
}LDKPointLight;
typedef struct LDKSpotLight{
u32 color;
float intensity;
float range;
float inner_angle;
float outer_angle;
bool enabled;
}LDKSpotLight;
typedef struct LDKDirectionalLight{
u32 color;
float intensity;
bool enabled;
bool casts_shadows;
}LDKDirectionalLight;
Build the ECS registration descriptor for the point light component.
LDK_API LDKComponentDesc ldk_point_light_component_desc(u32 initial_capacity);
u32 initial_capacityA descriptor for the requested component or resource.
Build the ECS registration descriptor for the spot light component.
LDK_API LDKComponentDesc ldk_spot_light_component_desc(u32 initial_capacity);
u32 initial_capacityA descriptor for the requested component or resource.
Build the ECS registration descriptor for the directional light component.
LDK_API LDKComponentDesc ldk_directional_light_component_desc(u32 initial_capacity);
u32 initial_capacityA descriptor for the requested component or resource.