Runtime directional light data mirrored from Components::DirectionalLight. sceneNodeEntity points to the transform used to derive the light direction unless hasDirectionOverride is set.
More...
#include <EcsData.h>
|
| glm::vec3 | color {1.0f} |
| | Linear RGB light color.
|
| float | intensity = 1.0f |
| | Light intensity multiplier.
|
| float | angularDiameterDegrees = 0.53f |
| | Apparent sun disk diameter in degrees.
|
| uint32_t | enabled = 1u |
| | 1 when the light contributes to rendering, 0 when disabled.
|
| uint32_t | castsShadows = 1u |
| | 1 when the light casts shadows.
|
| uint32_t | hasDirectionOverride = 0u |
| | 1 when direction overrides the scene node orientation.
|
| glm::vec3 | direction {0.0f, -1.0f, 0.0f} |
| | Direction used when hasDirectionOverride is 1.
|
| entt::entity | sceneNodeEntity = entt::null |
| | Scene node entity used for transform-derived direction.
|
Runtime directional light data mirrored from Components::DirectionalLight. sceneNodeEntity points to the transform used to derive the light direction unless hasDirectionOverride is set.
Definition at line 596 of file EcsData.h.
◆ angularDiameterDegrees
| float Engine::Ecs::DirectionalLightData::angularDiameterDegrees = 0.53f |
Apparent sun disk diameter in degrees.
Definition at line 600 of file EcsData.h.
◆ castsShadows
| uint32_t Engine::Ecs::DirectionalLightData::castsShadows = 1u |
1 when the light casts shadows.
Definition at line 602 of file EcsData.h.
◆ color
| glm::vec3 Engine::Ecs::DirectionalLightData::color {1.0f} |
Linear RGB light color.
Definition at line 598 of file EcsData.h.
◆ direction
| glm::vec3 Engine::Ecs::DirectionalLightData::direction {0.0f, -1.0f, 0.0f} |
Direction used when hasDirectionOverride is 1.
Definition at line 604 of file EcsData.h.
◆ enabled
| uint32_t Engine::Ecs::DirectionalLightData::enabled = 1u |
1 when the light contributes to rendering, 0 when disabled.
Definition at line 601 of file EcsData.h.
◆ hasDirectionOverride
| uint32_t Engine::Ecs::DirectionalLightData::hasDirectionOverride = 0u |
1 when direction overrides the scene node orientation.
Definition at line 603 of file EcsData.h.
◆ intensity
| float Engine::Ecs::DirectionalLightData::intensity = 1.0f |
Light intensity multiplier.
Definition at line 599 of file EcsData.h.
◆ sceneNodeEntity
| entt::entity Engine::Ecs::DirectionalLightData::sceneNodeEntity = entt::null |
Scene node entity used for transform-derived direction.
Definition at line 605 of file EcsData.h.
The documentation for this struct was generated from the following file:
- /workspace/magerbeton/gl3-vulkan/code/Engine/include/Engine/Ecs/EcsData.h