Public Member Functions | |
int | read (FILE *fp, int &textureIndex) |
void | write (FILE *fp=stdout) |
void | drawOpenGL (void) |
Public Attributes | |
int | index |
Point3D | ambient |
Point3D | diffuse |
Point3D | specular |
Point3D | emissive |
Point3D | transparent |
double | specularFallOff |
double | refind |
RayTexture * | tex |
char | foo [STRING_BUFFER_SIZE] |
|
This method calls the OpenGL commands for setting up the material. |
|
This method reads in the material information from a .ray file. |
|
This method writes out the material information to a .ray file. If no file is specified, the material is written out to stdout. |
|
The amount of ambient light the surface transmits |
|
The amount of diffuse light the surface transmits |
|
The amount of light the surface emits |
|
A string for storing additional material parameters specified by the user |
|
The index of the material within the scene |
|
The refraction index of the material |
|
The amount of specular light the surface transmits |
|
The coefficient for the specular fall-off of the material |
|
A pointer to the texture associated with a surface |
|
The amount of transparent light the surface transmits |