Assignments
Assignments
|
#include <scene.h>
Public Member Functions | |
Material (void) | |
void | drawOpenGL (GLSLProgram *glslProgram) const |
Public Attributes | |
Util::Point3D | ambient |
Util::Point3D | diffuse |
Util::Point3D | specular |
Util::Point3D | emissive |
Util::Point3D | transparent |
double | specularFallOff |
double | ir |
const Texture * | tex |
std::string | foo |
Private Attributes | |
friend | SceneGeometry |
friend | Scene |
int | _texIndex |
This class stores surface material properties.
Material::Material | ( | void | ) |
The default constructor
void Material::drawOpenGL | ( | GLSLProgram * | glslProgram | ) | const |
This method calls the OpenGL commands for setting up the material.
|
private |
The index of the texture associated with the material
Util::Point3D Ray::Material::ambient |
The amount of ambient light the surface transmits
Util::Point3D Ray::Material::diffuse |
The amount of diffuse light the surface transmits
Util::Point3D Ray::Material::emissive |
The amount of light the surface emits
std::string Ray::Material::foo |
A string for storing additional material parameters specified by the user
double Ray::Material::ir |
The index of refraction of the material
|
private |
|
private |
Util::Point3D Ray::Material::specular |
The amount of specular light the surface transmits
double Ray::Material::specularFallOff |
The coefficient for the specular fall-off of the material
const Texture* Ray::Material::tex |
A pointer to the texture associated with a surface
Util::Point3D Ray::Material::transparent |
The amount of transparent light the surface transmits