CSCI441 OpenGL Library 5.9.0
CS@Mines CSCI441 Computer Graphics Course Library
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
CSCI441::Materials::Material Struct Reference

stores material properties used within the Phong Reflectance Model More...

#include <materials.hpp>

Public Member Functions

glm::vec4 getDiffuse () const
 RGBA values for Diffuse Reflectance.
 
glm::vec4 getSpecular () const
 RGBA values for Specular Reflectance.
 
glm::vec4 getAmbient () const
 RGBA values for Ambient Reflectance.
 

Public Attributes

GLfloat diffuse [4]
 RGBA values for Diffuse (Lambertian) Reflectance.
 
GLfloat specular [4]
 RGBA values for Specular Reflectance.
 
GLfloat shininess
 Shininess value to control exponential falloff of Specular Reflectance.
 
GLfloat ambient [4]
 RGBA values for Ambient Illumination.
 

Detailed Description

stores material properties used within the Phong Reflectance Model

Member Function Documentation

◆ getAmbient()

glm::vec4 CSCI441::Materials::Material::getAmbient ( ) const
inline

RGBA values for Ambient Reflectance.

Returns
ambient values in glm::vec4 format

◆ getDiffuse()

glm::vec4 CSCI441::Materials::Material::getDiffuse ( ) const
inline

RGBA values for Diffuse Reflectance.

Returns
diffuse values in glm::vec4 format

◆ getSpecular()

glm::vec4 CSCI441::Materials::Material::getSpecular ( ) const
inline

RGBA values for Specular Reflectance.

Returns
specular values in glm::vec4 format

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