This reference page is linked to from the following overview
topics: Render
Elements.
#include <renderelements.h>
Class Description
- See also:
- Class IRenderElement, Class ShadeContext, Class
IllumParams ,
Render
Elements
- Description:
- This is the RenderElement base class for 3ds Max' default
scanline renderer. RenderElement plugins that utilize ShadeContext and IllumParams should sub-class
from here. . All render elements that support the max renderer
should derive from this class. The class implements a handler for
the ShadeOutputIndex of the elements value in the ShadeOutput array. Access to the
elements value is accomplished within PostIllum or PostAtmosphere
by:
AColor
myColor;
// ... do some computation
sc.out.elementVals[ mShadeOutputIndex ] = myColor;
// ... or
sc.out.elementVals[ ShadeOutputIndex()
] = myColor;
A sample plugin of a Render Element can be found in the SDK
samples; /MAXSDK/SAMPLES/RENDER/RENDERELEMENTS.
- Data Members:
- protected:
int mShadeOutputIndex;
The index into element value array in shadeOutput class.
Member Enumeration Documentation
Member Function Documentation
void SetShadeOutputIndex |
( |
int |
shadeOutputIndex |
) |
[inline] |
- Parameters:
- int shadeOutputIndex
The shadeOutput index.
int ShadeOutputIndex |
( |
|
) |
const [inline] |
virtual void Update |
( |
TimeValue |
timeValue |
) |
[inline, virtual] |
- Parameters:
- TimeValue timeValue
The timevalue at which the update gets called.
virtual void PostAtmosphere |
( |
ShadeContext & |
sc, |
|
|
float |
z, |
|
|
float |
prevZ |
|
) |
|
[pure virtual] |
- Parameters:
- ShadeContext& sc
A reference to the ShadeContext.
float z
The first depth value.
float prevZ
The previous depth value.
virtual void* GetInterface |
( |
ULONG |
id |
) |
[inline, virtual] |
virtual void ReleaseInterface |
( |
ULONG |
id, |
|
|
void * |
i |
|
) |
|
[inline, virtual] |
Friends And Related Function Documentation
friend class FilterComp
[friend] |
Member Data Documentation