group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
MaterialData Struct Reference

PBR material scalar parameters extracted from Assimp/glTF. More...

#include <ModelLoader.hpp>

Public Attributes

glm::vec4 baseColorFactor {1.0f, 1.0f, 1.0f, 1.0f}
 
float metallicFactor = 0.0f
 Default dielectric (non-metal).
 
float roughnessFactor = 0.5f
 Default mid-roughness.
 
float aoStrength = 1.0f
 
float normalScale = 1.0f
 
glm::vec4 emissiveFactor {0.0f, 0.0f, 0.0f, 0.0f}
 rgb in xyz, w unused.
 
AlphaMode alphaMode = AlphaMode::Opaque
 
float alphaCutoff = 0.5f
 Threshold for AlphaMode::Mask.
 

Detailed Description

PBR material scalar parameters extracted from Assimp/glTF.

Member Data Documentation

◆ alphaCutoff

float MaterialData::alphaCutoff = 0.5f

Threshold for AlphaMode::Mask.

◆ alphaMode

AlphaMode MaterialData::alphaMode = AlphaMode::Opaque

◆ aoStrength

float MaterialData::aoStrength = 1.0f

◆ baseColorFactor

glm::vec4 MaterialData::baseColorFactor {1.0f, 1.0f, 1.0f, 1.0f}

◆ emissiveFactor

glm::vec4 MaterialData::emissiveFactor {0.0f, 0.0f, 0.0f, 0.0f}

rgb in xyz, w unused.

◆ metallicFactor

float MaterialData::metallicFactor = 0.0f

Default dielectric (non-metal).

◆ normalScale

float MaterialData::normalScale = 1.0f

◆ roughnessFactor

float MaterialData::roughnessFactor = 0.5f

Default mid-roughness.


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