cgv
Loading...
Searching...
No Matches
fx::gltf::Material Struct Reference

Classes

struct  NormalTexture
 
struct  OcclusionTexture
 
struct  PBRMetallicRoughness
 
struct  Texture
 

Public Types

enum class  AlphaMode : uint8_t { Opaque , Mask , Blend }
 

Public Attributes

float alphaCutoff { defaults::MaterialAlphaCutoff }
 
AlphaMode alphaMode { AlphaMode::Opaque }
 
bool doubleSided { defaults::MaterialDoubleSided }
 
NormalTexture normalTexture
 
OcclusionTexture occlusionTexture
 
PBRMetallicRoughness pbrMetallicRoughness
 
Texture emissiveTexture
 
std::array< float, 3 > emissiveFactor = { defaults::NullVec3 }
 
std::string name
 
nlohmann::json extensionsAndExtras {}
 

Detailed Description

Definition at line 591 of file gltf.h.

Member Enumeration Documentation

◆ AlphaMode

enum class fx::gltf::Material::AlphaMode : uint8_t
strong

Definition at line 593 of file gltf.h.

Member Data Documentation

◆ alphaCutoff

float fx::gltf::Material::alphaCutoff { defaults::MaterialAlphaCutoff }

Definition at line 640 of file gltf.h.

◆ alphaMode

AlphaMode fx::gltf::Material::alphaMode { AlphaMode::Opaque }

Definition at line 641 of file gltf.h.

◆ doubleSided

bool fx::gltf::Material::doubleSided { defaults::MaterialDoubleSided }

Definition at line 643 of file gltf.h.

◆ emissiveFactor

std::array<float, 3> fx::gltf::Material::emissiveFactor = { defaults::NullVec3 }

Definition at line 650 of file gltf.h.

◆ emissiveTexture

Texture fx::gltf::Material::emissiveTexture

Definition at line 649 of file gltf.h.

◆ extensionsAndExtras

nlohmann::json fx::gltf::Material::extensionsAndExtras {}

Definition at line 653 of file gltf.h.

◆ name

std::string fx::gltf::Material::name

Definition at line 652 of file gltf.h.

◆ normalTexture

NormalTexture fx::gltf::Material::normalTexture

Definition at line 645 of file gltf.h.

◆ occlusionTexture

OcclusionTexture fx::gltf::Material::occlusionTexture

Definition at line 646 of file gltf.h.

◆ pbrMetallicRoughness

PBRMetallicRoughness fx::gltf::Material::pbrMetallicRoughness

Definition at line 647 of file gltf.h.


The documentation for this struct was generated from the following file: