Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
Engine::Assets::Loaders::GltfLoader::StaticMeshSettings Struct Reference

Static mesh settings parsed from legacy glTF extras. More...

#include <GltfLoader.h>

Public Member Functions

 StaticMeshSettings ()=default
 Creates settings with lightmaps disabled.
 StaticMeshSettings (const tinygltf::Value &extras)
 Parses lightmap settings from a tinygltf extras object.

Public Attributes

bool bUsesLightMaps = false
 True when the mesh uses baked lightmaps.
std::filesystem::path lightMapPath = std::filesystem::path()
 Path to the baked lightmap texture.
int lightMapUvIndex = std::numeric_limits<int>::max()
 UV channel index used for lightmap sampling.

Detailed Description

Static mesh settings parsed from legacy glTF extras.

Definition at line 207 of file GltfLoader.h.

Constructor & Destructor Documentation

◆ StaticMeshSettings() [1/2]

Engine::Assets::Loaders::GltfLoader::StaticMeshSettings::StaticMeshSettings ( )
default

Creates settings with lightmaps disabled.

◆ StaticMeshSettings() [2/2]

Engine::Assets::Loaders::GltfLoader::StaticMeshSettings::StaticMeshSettings ( const tinygltf::Value & extras)

Parses lightmap settings from a tinygltf extras object.

Parameters
extrasExtras object containing HasLightmaps, LightMapPath, and LightMapUvIndex.

Member Data Documentation

◆ bUsesLightMaps

bool Engine::Assets::Loaders::GltfLoader::StaticMeshSettings::bUsesLightMaps = false

True when the mesh uses baked lightmaps.

Definition at line 223 of file GltfLoader.h.

◆ lightMapPath

std::filesystem::path Engine::Assets::Loaders::GltfLoader::StaticMeshSettings::lightMapPath = std::filesystem::path()

Path to the baked lightmap texture.

Definition at line 228 of file GltfLoader.h.

◆ lightMapUvIndex

int Engine::Assets::Loaders::GltfLoader::StaticMeshSettings::lightMapUvIndex = std::numeric_limits<int>::max()

UV channel index used for lightmap sampling.

Definition at line 233 of file GltfLoader.h.


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