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

Engine-side representation of the Blender light settings exported for an object, including shadow and lightmap behavior. More...

#include <GltfLoader.h>

Classes

struct  LightmapProperties
 Lightmap metadata imported from lightmapProperties. More...

Public Member Functions

 LightProperties (const tinygltf::Value &extension)
 Parses lightingProperties from the parent engine extension object.
bool getCastShadows () const
 Checks whether the object casts shadows.
bool getReceiveShadows () const
 Checks whether the object receives shadows.
bool getHasLightmaps () const
 Checks whether the object uses baked lightmaps.

Private Attributes

std::optional< LightmapProperties > lightmapProperties
bool castShadows
bool receiveShadows
bool hasLightmaps

Detailed Description

Engine-side representation of the Blender light settings exported for an object, including shadow and lightmap behavior.

Definition at line 295 of file GltfLoader.h.

Constructor & Destructor Documentation

◆ LightProperties()

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

Parses lightingProperties from the parent engine extension object.

Parameters
extensionParent extension object that contains lightingProperties.

Member Function Documentation

◆ getCastShadows()

bool Engine::Assets::Loaders::GltfLoader::VulkanSchneeExtension::LightProperties::getCastShadows ( ) const

Checks whether the object casts shadows.

Returns
Imported castShadows value.

◆ getHasLightmaps()

bool Engine::Assets::Loaders::GltfLoader::VulkanSchneeExtension::LightProperties::getHasLightmaps ( ) const

Checks whether the object uses baked lightmaps.

Returns
Imported hasLightmaps value.

◆ getReceiveShadows()

bool Engine::Assets::Loaders::GltfLoader::VulkanSchneeExtension::LightProperties::getReceiveShadows ( ) const

Checks whether the object receives shadows.

Returns
Imported receiveShadows value.

Member Data Documentation

◆ castShadows

bool Engine::Assets::Loaders::GltfLoader::VulkanSchneeExtension::LightProperties::castShadows
private

Definition at line 363 of file GltfLoader.h.

◆ hasLightmaps

bool Engine::Assets::Loaders::GltfLoader::VulkanSchneeExtension::LightProperties::hasLightmaps
private

Definition at line 365 of file GltfLoader.h.

◆ lightmapProperties

std::optional<LightmapProperties> Engine::Assets::Loaders::GltfLoader::VulkanSchneeExtension::LightProperties::lightmapProperties
private

Definition at line 361 of file GltfLoader.h.

◆ receiveShadows

bool Engine::Assets::Loaders::GltfLoader::VulkanSchneeExtension::LightProperties::receiveShadows
private

Definition at line 364 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