ShinyDiffuseMaterial Class Reference

Defines a conventional material with specular and diffuse properties. More...

#include <ecmaterial.h>

Inheritance diagram for ShinyDiffuseMaterial:

Material EclipseObject

List of all members.

Public Member Functions

 ShinyDiffuseMaterial (const char *a_sID, YRColorRGB &a_color, float a_fTransparency=0.0f, float a_fTranslucency=0.0f, float a_fDiffuseReflect=1.0f, float a_fSpecularReflect=0.0f, float a_fEmisiveness=0.0f, float a_fFresnel=1.33f, float a_fONSigma=0.0f)
 Simplified constructor The material itself supports more parameters than these, but this simplified function includes the ones that are frequently more important.

Protected Member Functions

virtual void DeleteObject ()
 Child message hook for reference-count based destruction.


Detailed Description

Defines a conventional material with specular and diffuse properties.

Author:
Dan Torres 2008/12/12

Definition at line 111 of file ecmaterial.h.


Constructor & Destructor Documentation

ShinyDiffuseMaterial::ShinyDiffuseMaterial ( const char *  a_sID,
YRColorRGB a_color,
float  a_fTransparency = 0.0f,
float  a_fTranslucency = 0.0f,
float  a_fDiffuseReflect = 1.0f,
float  a_fSpecularReflect = 0.0f,
float  a_fEmisiveness = 0.0f,
float  a_fFresnel = 1.33f,
float  a_fONSigma = 0.0f 
)

Simplified constructor The material itself supports more parameters than these, but this simplified function includes the ones that are frequently more important.

Others use default values.

Parameters:
a_sID Unique ID for this material
a_color Diffuse color
a_fTransparency Material transparency
a_fTranslucency Amount of diffuse transmission
a_fDiffuseReflect Amount of diffuse reflection
a_fSpecularReflect Amount of perfec specular reflection ("mirror")
a_fEmisiveness Self-emissive term
a_fFresnel Refraction index for fresnel effect. Set to zero to disable fresnel.
a_fONSigma Sigma value for Oren-Nayar BRDF. Set to zero to disable.


Member Function Documentation

virtual void ShinyDiffuseMaterial::DeleteObject (  )  [protected, virtual]

Child message hook for reference-count based destruction.

The child class is responsible for deleting any instance to which this this function is called.

Reimplemented from EclipseObject.


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

Generated on Tue Jan 20 17:58:00 2009 for EclipseRay by  doxygen 1.5.7.1