DefaultReflectionComponent< ParameterType, ShaderHelper > Class Template Reference
[Reflection Passes]
#include <adskComponent.h>
List of all members.
Detailed Description
template<typename ParameterType, typename ShaderHelper>
class DefaultReflectionComponent< ParameterType, ShaderHelper >
Reflection component for lambertian materials.
This component computes the reflected light arriving at the shading point.
- Template Parameters:
-
| ParameterType | The structure used in the shader declaration to represent the shader parameters. |
| ShaderHelper | The class used in the shader declaration to represent the shader helper. See ShaderHelper for details on the required methods. |
|
Public Member Functions |
| | DefaultReflectionComponent (miState *pState, ParameterType *pParameters) |
| | Component constructor.
|
|
| ~DefaultReflectionComponent () |
| | Component destructor.
|
| miColor | operator() (miState *pState, ParameterType *pParameters, ShaderHelper &pHelper, miVector &pReflectionDirection, miBoolean pHideSource, miScalar &pGlowIntensity, unsigned int pNumberOfFrameBuffers, FrameBufferInfo *pFrameBufferInfo, PassTypeInfo *pPassTypeInfo, const miScalar &pFrameBufferScale) |
| | Function object operator.
|
Constructor & Destructor Documentation
template<typename ParameterType, typename ShaderHelper>
Component constructor.
- Parameters:
-
| [in,out] | pState | The mental ray rendering state. |
| [in] | pParameters | The shader parameters. |
Member Function Documentation
template<typename ParameterType, typename ShaderHelper>
| miColor DefaultReflectionComponent< ParameterType, ShaderHelper >::operator() |
( |
miState * |
pState, |
|
|
ParameterType * |
pParameters, |
|
|
ShaderHelper & |
pHelper, |
|
|
miVector & |
pReflectionDirection, |
|
|
miBoolean |
pHideSource, |
|
|
miScalar & |
pGlowIntensity, |
|
|
unsigned int |
pNumberOfFrameBuffers, |
|
|
FrameBufferInfo * |
pFrameBufferInfo, |
|
|
PassTypeInfo * |
pPassTypeInfo, |
|
|
const miScalar & |
pFrameBufferScale | |
|
) |
| | [inline] |
Function object operator.
- Parameters:
-
| [in,out] | pState | The mental ray rendering state. |
| [in,out] | pParameters | The shader parameters. |
| [in,out] | pHelper | The shader helper for this shader. |
| [in] | pReflectionDirection | The reflection direction |
| [in] | pHideSource | Is the source object hidden |
| [in] | pGlowIntensity | The glow intensity |
| [in] | pNumberOfFrameBuffers | The number of frame buffers |
| [in,out] | pFrameBufferInfo | The array of frame buffer info structs |
| [in] | pPassTypeInfo | The array of pass type info structs |
| [in] | pFrameBufferScale | Scale factor applied to frame buffer contributions |
- Returns:
- The color corresponding to this component.