Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
Loading...
Searching...
No Matches
Engine::Assets::Loaders::GltfLoader::VulkanSchneeExtension::DirectionalLightProperties Struct Reference

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.

Detailed Description

Directional light component data imported from directionalLightProperties.

Definition at line 565 of file GltfLoader.h.

Constructor & Destructor Documentation

◆ DirectionalLightProperties()

Engine::Assets::Loaders::GltfLoader::VulkanSchneeExtension::DirectionalLightProperties::DirectionalLightProperties ( const tinygltf::Value & extension)
explicit

Parses directional light settings from directionalLightProperties.

Parameters
extensionJSON object containing color, direction, intensity, shadow, and sun-size data.

Member Data Documentation

◆ angularDiameterDegrees

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.

◆ castsShadows

bool Engine::Assets::Loaders::GltfLoader::VulkanSchneeExtension::DirectionalLightProperties::castsShadows = true

True when the directional light casts shadows.

Definition at line 596 of file GltfLoader.h.

◆ color

glm::vec3 Engine::Assets::Loaders::GltfLoader::VulkanSchneeExtension::DirectionalLightProperties::color { 1.0f }

RGB light color.

Definition at line 576 of file GltfLoader.h.

◆ direction

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.

◆ enabled

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.

◆ hasDirection

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.

◆ intensity

float Engine::Assets::Loaders::GltfLoader::VulkanSchneeExtension::DirectionalLightProperties::intensity = 1.0f

Light intensity in engine lighting units.

Definition at line 586 of file GltfLoader.h.


The documentation for this struct was generated from the following file:
  • /workspace/magerbeton/gl3-vulkan/code/Engine/include/Engine/Mesh/GltfLoader.h