GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::resource::Model::Material Struct Reference

Material of a mesh instance in a model. More...

#include <GREM/resource/Model.hpp>

Classes

struct  TextureInfo
 Information about how a material uses a texture. More...

Public Attributes

MaterialType materialType
 How to interpret the material parameters when shading.
vec4 baseColorFactor
 Base color factor of the material.
float occlusionStrength
 Occlusion strength of the material.
float roughnessFactor
 Roughness factor of the material.
float metallicFactor
 Metallic factor of the material.
float normalScale
 Normal scale of the material.
vec3 emissiveFactor
 Emissive factor of the material.
float alphaCutoff
 Alpha cutoff value of the material.
float indexOfRefraction
 Index of refraction of the material.
TextureInfo baseColorMap
 Base color map of the material (sRGB-encoded), or an out-of-range index for a fully white texture.
TextureInfo occlusionRoughnessMetallicMap
 Occlusion-roughness-metallic map of the material (linearly encoded), or an out-of-range index for a fully white texture.
TextureInfo normalMap
 Normal map of the material (linearly encoded), or an out-of-range index for a flat normal texture.
TextureInfo emissiveMap
 Emissive map of the material (sRGB-encoded), or an out-of-range index for a fully white texture.
FragmentFlags fragmentFlags
 Fragment flags of the material.

Detailed Description

Material of a mesh instance in a model.

Member Data Documentation

◆ materialType

MaterialType grem::resource::Model::Material::materialType

How to interpret the material parameters when shading.

◆ baseColorFactor

vec4 grem::resource::Model::Material::baseColorFactor

Base color factor of the material.

◆ occlusionStrength

float grem::resource::Model::Material::occlusionStrength

Occlusion strength of the material.

◆ roughnessFactor

float grem::resource::Model::Material::roughnessFactor

Roughness factor of the material.

◆ metallicFactor

float grem::resource::Model::Material::metallicFactor

Metallic factor of the material.

◆ normalScale

float grem::resource::Model::Material::normalScale

Normal scale of the material.

◆ emissiveFactor

vec3 grem::resource::Model::Material::emissiveFactor

Emissive factor of the material.

◆ alphaCutoff

float grem::resource::Model::Material::alphaCutoff

Alpha cutoff value of the material.

◆ indexOfRefraction

float grem::resource::Model::Material::indexOfRefraction

Index of refraction of the material.

◆ baseColorMap

TextureInfo grem::resource::Model::Material::baseColorMap

Base color map of the material (sRGB-encoded), or an out-of-range index for a fully white texture.

◆ occlusionRoughnessMetallicMap

TextureInfo grem::resource::Model::Material::occlusionRoughnessMetallicMap

Occlusion-roughness-metallic map of the material (linearly encoded), or an out-of-range index for a fully white texture.

◆ normalMap

TextureInfo grem::resource::Model::Material::normalMap

Normal map of the material (linearly encoded), or an out-of-range index for a flat normal texture.

◆ emissiveMap

TextureInfo grem::resource::Model::Material::emissiveMap

Emissive map of the material (sRGB-encoded), or an out-of-range index for a fully white texture.

◆ fragmentFlags

FragmentFlags grem::resource::Model::Material::fragmentFlags

Fragment flags of the material.


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