CMSC23700 Common Code Library
Support code for CS23700 programming projects
Loading...
Searching...
No Matches
OBJ::Material Struct Reference

Structure that defines a material in a model. More...

#include <obj.hpp>

Public Attributes

std::string name
 name of material
 
int illum
 illumination mode (NoLight, etc.)
 
int ambientC
 how is the ambient light specified?
 
int emissiveC
 how is the emissive light specified?
 
int diffuseC
 how is the diffuse light specified?
 
int specularC
 how is the specular light specified?
 
glm::vec3 ambient
 uniform ambient component
 
glm::vec3 emissive
 uniform emissive component
 
glm::vec3 diffuse
 uniform diffuse component
 
glm::vec3 specular
 uniform specular component
 
float shininess
 uniform specular exponent
 
std::string ambientMap
 optional texture map for ambient
 
std::string emissiveMap
 optional texture map for emissive lighting
 
std::string diffuseMap
 optional texture map for diffuse lighting
 
std::string specularMap
 optional texture map for specular highlights
 
std::string normalMap
 optional normal map for bump mapping
 

Detailed Description

Structure that defines a material in a model.

Member Data Documentation

◆ ambient

glm::vec3 OBJ::Material::ambient

uniform ambient component

◆ ambientC

int OBJ::Material::ambientC

how is the ambient light specified?

◆ ambientMap

std::string OBJ::Material::ambientMap

optional texture map for ambient

◆ diffuse

glm::vec3 OBJ::Material::diffuse

uniform diffuse component

◆ diffuseC

int OBJ::Material::diffuseC

how is the diffuse light specified?

◆ diffuseMap

std::string OBJ::Material::diffuseMap

optional texture map for diffuse lighting

◆ emissive

glm::vec3 OBJ::Material::emissive

uniform emissive component

◆ emissiveC

int OBJ::Material::emissiveC

how is the emissive light specified?

◆ emissiveMap

std::string OBJ::Material::emissiveMap

optional texture map for emissive lighting

◆ illum

int OBJ::Material::illum

illumination mode (NoLight, etc.)

◆ name

std::string OBJ::Material::name

name of material

◆ normalMap

std::string OBJ::Material::normalMap

optional normal map for bump mapping

◆ shininess

float OBJ::Material::shininess

uniform specular exponent

◆ specular

glm::vec3 OBJ::Material::specular

uniform specular component

◆ specularC

int OBJ::Material::specularC

how is the specular light specified?

◆ specularMap

std::string OBJ::Material::specularMap

optional texture map for specular highlights


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