#include <ecmaterial.h>
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. |
Definition at line 111 of file ecmaterial.h.
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.
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. |
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.