libdonut  2.3.2
Application framework for cross-platform game development in C++20
Public Attributes | List of all members
donut::obj::mtl::Material Struct Reference

Material properties of an Object. More...

#include <donut/obj.hpp>

Public Attributes

std::string name {}
 Name of the material. More...
 
std::string ambientMapName {}
 Relative filepath of the ambient map image, or empty for no ambient map. More...
 
std::string diffuseMapName {}
 Relative filepath of the diffuse map image, or empty for no diffuse map. More...
 
std::string specularMapName {}
 Relative filepath of the specular map image, or empty for no specular map. More...
 
std::string emissiveMapName {}
 Relative filepath of the emissive map image, or empty for no emissive map. More...
 
std::string specularExponentMapName {}
 Relative filepath of the specular exponent map image, or empty for no specular exponent map. More...
 
std::string dissolveFactorMapName {}
 Relative filepath of the dissolve factor map image, or empty for no dissolve factor map. More...
 
std::string bumpMapName {}
 Relative filepath of the bump/normal map image, or empty for no bump/normal map. More...
 
vec3 ambientColor {1.0f, 1.0f, 1.0f}
 Ambient color factor to multiply the sampled ambient map value by. More...
 
vec3 diffuseColor {1.0f, 1.0f, 1.0f}
 Diffuse color factor to multiply the sampled diffuse map value by. More...
 
vec3 specularColor {1.0f, 1.0f, 1.0f}
 Specular color factor to multiply the sampled specular map value by. More...
 
vec3 emissiveColor {0.0f, 0.0f, 0.0f}
 Emissive color factor to multiply the sampled emissive map value by. More...
 
float specularExponent = 1.0f
 Specular exponent factor to multiply the sampled specular exponent map value by. More...
 
float dissolveFactor = 0.0f
 Dissolve factor to multiply the sampled dissolve factor map value by. More...
 
IlluminationModel illuminationModel = IlluminationModel::FLAT
 Illumination model to use for rendering this material. More...
 

Detailed Description

Material properties of an Object.

Member Data Documentation

◆ name

std::string donut::obj::mtl::Material::name {}

Name of the material.

◆ ambientMapName

std::string donut::obj::mtl::Material::ambientMapName {}

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

◆ diffuseMapName

std::string donut::obj::mtl::Material::diffuseMapName {}

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

◆ specularMapName

std::string donut::obj::mtl::Material::specularMapName {}

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

◆ emissiveMapName

std::string donut::obj::mtl::Material::emissiveMapName {}

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

◆ specularExponentMapName

std::string donut::obj::mtl::Material::specularExponentMapName {}

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

◆ dissolveFactorMapName

std::string donut::obj::mtl::Material::dissolveFactorMapName {}

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

◆ bumpMapName

std::string donut::obj::mtl::Material::bumpMapName {}

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

◆ ambientColor

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

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

◆ diffuseColor

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

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

◆ specularColor

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

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

◆ emissiveColor

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

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

◆ specularExponent

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

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

◆ dissolveFactor

float donut::obj::mtl::Material::dissolveFactor = 0.0f

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

◆ illuminationModel

IlluminationModel donut::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: