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

Material properties of a Node. More...

#include <GREM/core/formats/obj.hpp>

Public Attributes

String name {}
 Name of the material.
String ambientMapName {}
 Relative filepath of the ambient map image, or empty for no ambient map.
String diffuseMapName {}
 Relative filepath of the diffuse map image, or empty for no diffuse map.
String specularMapName {}
 Relative filepath of the specular map image, or empty for no specular map.
String emissiveMapName {}
 Relative filepath of the emissive map image, or empty for no emissive map.
String specularExponentMapName {}
 Relative filepath of the specular exponent map image, or empty for no specular exponent map.
String dissolveFactorMapName {}
 Relative filepath of the dissolve factor map image, or empty for no dissolve factor map.
String bumpMapName {}
 Relative filepath of the bump map image, or empty for no bump map.
String normalMapName {}
 Relative filepath of the normal map image, or empty for no normal map.
String occlusionRoughnessMetallicMapName {}
 Relative filepath of the occlusion-roughness-metallic map image, or empty for no ORM map.
vec3 ambientColor {1.0f, 1.0f, 1.0f}
 Ambient color factor to multiply the sampled ambient map value by.
vec3 diffuseColor {1.0f, 1.0f, 1.0f}
 Diffuse color factor to multiply the sampled diffuse map value by.
vec3 specularColor {1.0f, 1.0f, 1.0f}
 Specular color factor to multiply the sampled specular map value by.
vec3 emissiveColor {0.0f, 0.0f, 0.0f}
 Emissive color factor to multiply the sampled emissive map value by.
float specularExponent = 1.0f
 Specular exponent factor to multiply the sampled specular exponent map value by.
float dissolveFactor = 1.0f
 Dissolve factor to multiply the sampled dissolve factor map value by.
Optional< float > roughnessFactor {}
 Roughness factor to multiply the sampled roughness value by, or an empty optional if unspecified.
Optional< float > metallicFactor {}
 Metallic factor to multiply the sampled metallic value by, or an empty optional if unspecified.
IlluminationModel illuminationModel = IlluminationModel::FLAT
 Illumination model to use for rendering this material.

Detailed Description

Material properties of a Node.

Member Data Documentation

◆ name

String grem::obj::mtl::Material::name {}

Name of the material.

◆ ambientMapName

String grem::obj::mtl::Material::ambientMapName {}

Relative filepath of the ambient map image, or empty for no ambient map.

◆ diffuseMapName

String grem::obj::mtl::Material::diffuseMapName {}

Relative filepath of the diffuse map image, or empty for no diffuse map.

◆ specularMapName

String grem::obj::mtl::Material::specularMapName {}

Relative filepath of the specular map image, or empty for no specular map.

◆ emissiveMapName

String grem::obj::mtl::Material::emissiveMapName {}

Relative filepath of the emissive map image, or empty for no emissive map.

◆ specularExponentMapName

String grem::obj::mtl::Material::specularExponentMapName {}

Relative filepath of the specular exponent map image, or empty for no specular exponent map.

◆ dissolveFactorMapName

String grem::obj::mtl::Material::dissolveFactorMapName {}

Relative filepath of the dissolve factor map image, or empty for no dissolve factor map.

◆ bumpMapName

String grem::obj::mtl::Material::bumpMapName {}

Relative filepath of the bump map image, or empty for no bump map.

◆ normalMapName

String grem::obj::mtl::Material::normalMapName {}

Relative filepath of the normal map image, or empty for no normal map.

◆ occlusionRoughnessMetallicMapName

String grem::obj::mtl::Material::occlusionRoughnessMetallicMapName {}

Relative filepath of the occlusion-roughness-metallic map image, or empty for no ORM map.

◆ ambientColor

vec3 grem::obj::mtl::Material::ambientColor {1.0f, 1.0f, 1.0f}

Ambient color factor to multiply the sampled ambient map value by.

◆ diffuseColor

vec3 grem::obj::mtl::Material::diffuseColor {1.0f, 1.0f, 1.0f}

Diffuse color factor to multiply the sampled diffuse map value by.

◆ specularColor

vec3 grem::obj::mtl::Material::specularColor {1.0f, 1.0f, 1.0f}

Specular color factor to multiply the sampled specular map value by.

◆ emissiveColor

vec3 grem::obj::mtl::Material::emissiveColor {0.0f, 0.0f, 0.0f}

Emissive color factor to multiply the sampled emissive map value by.

◆ specularExponent

float grem::obj::mtl::Material::specularExponent = 1.0f

Specular exponent factor to multiply the sampled specular exponent map value by.

◆ dissolveFactor

float grem::obj::mtl::Material::dissolveFactor = 1.0f

Dissolve factor to multiply the sampled dissolve factor map value by.

◆ roughnessFactor

Optional<float> grem::obj::mtl::Material::roughnessFactor {}

Roughness factor to multiply the sampled roughness value by, or an empty optional if unspecified.

◆ metallicFactor

Optional<float> grem::obj::mtl::Material::metallicFactor {}

Metallic factor to multiply the sampled metallic value by, or an empty optional if unspecified.

◆ illuminationModel

IlluminationModel grem::obj::mtl::Material::illuminationModel = IlluminationModel::FLAT

Illumination model to use for rendering this material.


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