GClasses
|
Represents the material of which an object is made in a ray-tracing scene.
#include <GRayTrace.h>
Public Member Functions | |
GRayTracePhysicalMaterial () | |
GRayTracePhysicalMaterial (GDomNode *pNode) | |
virtual | ~GRayTracePhysicalMaterial () |
virtual G3DReal | cloudiness () |
virtual GRayTraceColor * | color (ColorType eType, GRayTraceRay *pRay) |
Ignores pRay and returns the color of the specified type. (pRay is used by image-texture materials to determine which pixel applies.) More... | |
virtual GRayTraceMaterial * | copy () |
virtual G3DReal | glossiness () |
virtual G3DReal | indexOfRefraction () |
virtual bool | isSame (GRayTraceMaterial *pThat) |
virtual MaterialType | materialType () const |
virtual GDomNode * | serialize (GDom *pDoc) const |
void | setCloudiness (G3DReal val) |
void | setColor (ColorType eType, G3DReal r, G3DReal g, G3DReal b) |
void | setColor (ColorType eType, GRayTraceColor *pCol) |
void | setGlossiness (G3DReal val) |
void | setIndexOfRefraction (G3DReal val) |
void | setSpecularExponent (G3DReal val) |
virtual G3DReal | specularExponent () |
Public Member Functions inherited from GClasses::GRayTraceMaterial | |
GRayTraceMaterial () | |
virtual | ~GRayTraceMaterial () |
void | computeColor (GRayTraceScene *pScene, GRayTraceRay *pRay, bool bAmbient, bool bSpecular) |
Protected Attributes | |
G3DReal | m_cloudiness |
GRayTraceColor | m_colors [Color_Type_Count] |
G3DReal | m_glossiness |
G3DReal | m_indexOfRefraction |
G3DReal | m_specularExponent |
Additional Inherited Members | |
Public Types inherited from GClasses::GRayTraceMaterial | |
Static Public Member Functions inherited from GClasses::GRayTraceMaterial | |
static GRayTraceMaterial * | deserialize (GDomNode *pNode) |
GClasses::GRayTracePhysicalMaterial::GRayTracePhysicalMaterial | ( | ) |
GClasses::GRayTracePhysicalMaterial::GRayTracePhysicalMaterial | ( | GDomNode * | pNode | ) |
|
virtual |
|
inlinevirtual |
Implements GClasses::GRayTraceMaterial.
|
virtual |
Ignores pRay and returns the color of the specified type. (pRay is used by image-texture materials to determine which pixel applies.)
Implements GClasses::GRayTraceMaterial.
|
virtual |
Implements GClasses::GRayTraceMaterial.
|
inlinevirtual |
Implements GClasses::GRayTraceMaterial.
|
inlinevirtual |
Implements GClasses::GRayTraceMaterial.
|
virtual |
Implements GClasses::GRayTraceMaterial.
|
inlinevirtual |
Implements GClasses::GRayTraceMaterial.
Implements GClasses::GRayTraceMaterial.
|
inline |
void GClasses::GRayTracePhysicalMaterial::setColor | ( | ColorType | eType, |
G3DReal | r, | ||
G3DReal | g, | ||
G3DReal | b | ||
) |
void GClasses::GRayTracePhysicalMaterial::setColor | ( | ColorType | eType, |
GRayTraceColor * | pCol | ||
) |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Implements GClasses::GRayTraceMaterial.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |