gramods
Public Attributes | List of all members
gramods::gmGraphics::ObjRenderer::Material Struct Reference

Data struct for material data used in the obj file rendering. More...

#include <ObjRenderer.hh>

Collaboration diagram for gramods::gmGraphics::ObjRenderer::Material:
Collaboration graph
[legend]

Public Attributes

Eigen::Vector3f color_ambient
 
Eigen::Vector3f color_diffuse
 
Eigen::Vector3f color_specular
 
Eigen::Vector3f color_emissive
 
float shininess
 Shininess, i.e. More...
 
std::shared_ptr< gmGraphics::ImageTexturetexture_ambient = 0
 
std::shared_ptr< gmGraphics::ImageTexturetexture_diffuse = 0
 
std::shared_ptr< gmGraphics::ImageTexturetexture_specular = 0
 
std::shared_ptr< gmGraphics::ImageTexturetexture_emissive = 0
 

Detailed Description

Data struct for material data used in the obj file rendering.

The texture color value for each material component (texture_X) is multiplied with the corresponding color vector (color_X) before adding its contribution to the raster color.

Member Data Documentation

◆ shininess

float gramods::gmGraphics::ObjRenderer::Material::shininess

Shininess, i.e.

the exponent of the specular highlights. Default 32.


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