|
Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
|
Directional light component data imported from directionalLightProperties. More...
#include <GltfLoader.h>
Public Member Functions | |
| DirectionalLightProperties (const tinygltf::Value &extension) | |
| Parses directional light settings from directionalLightProperties. | |
Public Attributes | |
| glm::vec3 | color { 1.0f } |
| RGB light color. | |
| glm::vec3 | direction { 0.0f, -1.0f, 0.0f } |
| Direction vector in glTF node space or exported world space, depending on authoring data. | |
| float | intensity = 1.0f |
| Light intensity in engine lighting units. | |
| bool | enabled = true |
| True when the imported light should spawn enabled. | |
| bool | castsShadows = true |
| True when the directional light casts shadows. | |
| bool | hasDirection = false |
| True when the extension supplied a non-zero direction vector. | |
| float | angularDiameterDegrees = 0.53f |
| Angular diameter used for sun disk and soft shadow calculations. | |
Directional light component data imported from directionalLightProperties.
Definition at line 565 of file GltfLoader.h.
|
explicit |
Parses directional light settings from directionalLightProperties.
| extension | JSON object containing color, direction, intensity, shadow, and sun-size data. |
| float Engine::Assets::Loaders::GltfLoader::VulkanSchneeExtension::DirectionalLightProperties::angularDiameterDegrees = 0.53f |
Angular diameter used for sun disk and soft shadow calculations.
Definition at line 606 of file GltfLoader.h.
| bool Engine::Assets::Loaders::GltfLoader::VulkanSchneeExtension::DirectionalLightProperties::castsShadows = true |
True when the directional light casts shadows.
Definition at line 596 of file GltfLoader.h.
| glm::vec3 Engine::Assets::Loaders::GltfLoader::VulkanSchneeExtension::DirectionalLightProperties::color { 1.0f } |
RGB light color.
Definition at line 576 of file GltfLoader.h.
| glm::vec3 Engine::Assets::Loaders::GltfLoader::VulkanSchneeExtension::DirectionalLightProperties::direction { 0.0f, -1.0f, 0.0f } |
Direction vector in glTF node space or exported world space, depending on authoring data.
Definition at line 581 of file GltfLoader.h.
| bool Engine::Assets::Loaders::GltfLoader::VulkanSchneeExtension::DirectionalLightProperties::enabled = true |
True when the imported light should spawn enabled.
Definition at line 591 of file GltfLoader.h.
| bool Engine::Assets::Loaders::GltfLoader::VulkanSchneeExtension::DirectionalLightProperties::hasDirection = false |
True when the extension supplied a non-zero direction vector.
Definition at line 601 of file GltfLoader.h.
| float Engine::Assets::Loaders::GltfLoader::VulkanSchneeExtension::DirectionalLightProperties::intensity = 1.0f |
Light intensity in engine lighting units.
Definition at line 586 of file GltfLoader.h.