This reference page is linked to from the following overview
topics: Render
Elements.
Detailed Description
- See also:
- Class IRenderElement, Class ShadeContext, Class
IllumParams ,
Render Elements
- Description:
- This class is available in release 4.0 and later only.
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.
#include <renderelements.h>
List of all
members.
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
MaxRenderElement MaxRenderElement
MaxRenderElement MaxRenderElement MaxRenderElement MaxRenderElement
MaxRenderElement MaxRenderElement MaxRenderElement
MaxRenderElement
MaxRenderElement MaxRenderElement
MaxRenderElement MaxRenderElement MaxRenderElement MaxRenderElement
MaxRenderElement MaxRenderElement MaxRenderElement
MaxRenderElement