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

Material attributes of the mesh. More...

#include <donut/graphics/Model.hpp>

Public Attributes

Texture diffuseMap
 Texture used for the base color. More...
 
Texture specularMap
 Texture used for specular highlights. More...
 
Texture normalMap
 Texture used for normal mapping. More...
 
Texture emissiveMap
 Texture used for emissive mapping. More...
 
vec3 diffuseColor
 Base color. More...
 
vec3 specularColor
 Specular color. More...
 
vec3 normalScale
 Normal map scale. More...
 
vec3 emissiveColor
 Emissive color. More...
 
float specularExponent
 Specular exponent for specular highlights. More...
 
float dissolveFactor
 Dissolve factor for transparency. More...
 
float occlusionFactor
 Occlusion factor. More...
 

Detailed Description

Material attributes of the mesh.

Member Data Documentation

◆ diffuseMap

Texture donut::graphics::Model::Object::Material::diffuseMap

Texture used for the base color.

◆ specularMap

Texture donut::graphics::Model::Object::Material::specularMap

Texture used for specular highlights.

◆ normalMap

Texture donut::graphics::Model::Object::Material::normalMap

Texture used for normal mapping.

◆ emissiveMap

Texture donut::graphics::Model::Object::Material::emissiveMap

Texture used for emissive mapping.

◆ diffuseColor

vec3 donut::graphics::Model::Object::Material::diffuseColor

Base color.

◆ specularColor

vec3 donut::graphics::Model::Object::Material::specularColor

Specular color.

◆ normalScale

vec3 donut::graphics::Model::Object::Material::normalScale

Normal map scale.

◆ emissiveColor

vec3 donut::graphics::Model::Object::Material::emissiveColor

Emissive color.

◆ specularExponent

float donut::graphics::Model::Object::Material::specularExponent

Specular exponent for specular highlights.

◆ dissolveFactor

float donut::graphics::Model::Object::Material::dissolveFactor

Dissolve factor for transparency.

◆ occlusionFactor

float donut::graphics::Model::Object::Material::occlusionFactor

Occlusion factor.


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