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

Lightmap metadata imported from lightmapProperties. More...

#include <GltfLoader.h>

Public Member Functions

 LightmapProperties (const tinygltf::Value &extension)
 Parses a lightmapProperties object.
bool isLightmapPathValid () const
 Checks whether either lightmap path is present.
const std::filesystem::path & getRuntimeLightmapPath () const
 Gets the texture path used at runtime.

Public Attributes

std::filesystem::path lightmapPath
 Authored lightmap image path, usually relative to the glTF file.
std::filesystem::path lightmapKtxPath
 Runtime KTX lightmap path when the export converted the source image.
uint32_t lightmapUvIndex
 UV set index used for lightmap sampling.

Detailed Description

Lightmap metadata imported from lightmapProperties.

Definition at line 306 of file GltfLoader.h.

Constructor & Destructor Documentation

◆ LightmapProperties()

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

Parses a lightmapProperties object.

Parameters
extensionJSON object with lightmap paths and UV channel data.

Member Function Documentation

◆ getRuntimeLightmapPath()

const std::filesystem::path & Engine::Assets::Loaders::GltfLoader::VulkanSchneeExtension::LightProperties::LightmapProperties::getRuntimeLightmapPath ( ) const
nodiscard

Gets the texture path used at runtime.

Returns
lightmapKtxPath when present; otherwise lightmapPath.

◆ isLightmapPathValid()

bool Engine::Assets::Loaders::GltfLoader::VulkanSchneeExtension::LightProperties::LightmapProperties::isLightmapPathValid ( ) const

Checks whether either lightmap path is present.

Returns
True when lightmapPath or lightmapKtxPath is non-empty.

Member Data Documentation

◆ lightmapKtxPath

std::filesystem::path Engine::Assets::Loaders::GltfLoader::VulkanSchneeExtension::LightProperties::LightmapProperties::lightmapKtxPath

Runtime KTX lightmap path when the export converted the source image.

Definition at line 322 of file GltfLoader.h.

◆ lightmapPath

std::filesystem::path Engine::Assets::Loaders::GltfLoader::VulkanSchneeExtension::LightProperties::LightmapProperties::lightmapPath

Authored lightmap image path, usually relative to the glTF file.

Definition at line 317 of file GltfLoader.h.

◆ lightmapUvIndex

uint32_t Engine::Assets::Loaders::GltfLoader::VulkanSchneeExtension::LightProperties::LightmapProperties::lightmapUvIndex

UV set index used for lightmap sampling.

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