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

Parsed VULKAN_SCHNEE_materials material extension data. More...

#include <GltfLoader.h>

Collaboration diagram for Engine::Assets::Loaders::GltfLoader::VulkanSchneeMaterialExtension:

Classes

struct  ShaderParameter
 Shader input exported from a Vulkan Schnee Blender shader node. More...

Public Member Functions

 VulkanSchneeMaterialExtension ()=default
 Creates an empty material extension record.
 VulkanSchneeMaterialExtension (const tinygltf::Value &vs_extension)
 Parses a VULKAN_SCHNEE_materials extension object.

Public Attributes

std::string shaderType
 Shader type string exported by the Blender material node.
Rendering::PipelineNames materialName
 Renderer pipeline name resolved from shaderType.
std::map< std::string, ShaderParameter > shaderParameters
 Shader socket parameters keyed by exported socket name.
std::map< std::string, double > nodeProperties
 Numeric node properties keyed by exported property name.
std::map< std::string, tinygltf::Value > customProperties
 Custom material properties preserved as tinygltf values.
bool normalMapBC5 = false
 True when the normal map texture uses BC5 two-channel encoding.

Detailed Description

Parsed VULKAN_SCHNEE_materials material extension data.

The extension stores the authored shader type, shader socket values, node properties, custom material properties, and normal map encoding metadata exported from Blender.

Definition at line 703 of file GltfLoader.h.

Constructor & Destructor Documentation

◆ VulkanSchneeMaterialExtension() [1/2]

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

Creates an empty material extension record.

◆ VulkanSchneeMaterialExtension() [2/2]

Engine::Assets::Loaders::GltfLoader::VulkanSchneeMaterialExtension::VulkanSchneeMaterialExtension ( const tinygltf::Value & vs_extension)
explicit

Parses a VULKAN_SCHNEE_materials extension object.

Parameters
vs_extensionMaterial extension JSON object from tinygltf.

Member Data Documentation

◆ customProperties

std::map<std::string, tinygltf::Value> Engine::Assets::Loaders::GltfLoader::VulkanSchneeMaterialExtension::customProperties

Custom material properties preserved as tinygltf values.

Definition at line 766 of file GltfLoader.h.

◆ materialName

Rendering::PipelineNames Engine::Assets::Loaders::GltfLoader::VulkanSchneeMaterialExtension::materialName

Renderer pipeline name resolved from shaderType.

Definition at line 751 of file GltfLoader.h.

◆ nodeProperties

std::map<std::string, double> Engine::Assets::Loaders::GltfLoader::VulkanSchneeMaterialExtension::nodeProperties

Numeric node properties keyed by exported property name.

Definition at line 761 of file GltfLoader.h.

◆ normalMapBC5

bool Engine::Assets::Loaders::GltfLoader::VulkanSchneeMaterialExtension::normalMapBC5 = false

True when the normal map texture uses BC5 two-channel encoding.

Definition at line 771 of file GltfLoader.h.

◆ shaderParameters

std::map<std::string, ShaderParameter> Engine::Assets::Loaders::GltfLoader::VulkanSchneeMaterialExtension::shaderParameters

Shader socket parameters keyed by exported socket name.

Definition at line 756 of file GltfLoader.h.

◆ shaderType

std::string Engine::Assets::Loaders::GltfLoader::VulkanSchneeMaterialExtension::shaderType

Shader type string exported by the Blender material node.

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