DefaultSpecularComponent< ParameterType, ShaderHelper >
Class Template Reference
[Specular
Passes]
#include
<adskComponent.h>
List of
all members.
Detailed Description
template<typename ParameterType, typename
ShaderHelper>
class DefaultSpecularComponent< ParameterType, ShaderHelper
>
Default specular component.
The default specular component does not compute anything since
the default material is Lambertian, and therefore has no specular
reflections.
- 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
|
|
DefaultSpecularComponent (miState *pState, ParameterType
*pParameters) |
|
Component constructor.
|
|
~DefaultSpecularComponent () |
|
Component destructor.
|
miColor |
operator() (miState *pState, ParameterType *pParameters,
ShaderHelper
&pHelper, miVector &pLightDirection, miVector
&pReflectionDirection, miScalar pDotNL, miVector
&pBumpNormal) |
|
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 DefaultSpecularComponent<
ParameterType, ShaderHelper >::operator() |
( |
miState * |
pState, |
|
|
ParameterType * |
pParameters, |
|
|
ShaderHelper & |
pHelper, |
|
|
miVector & |
pLightDirection, |
|
|
miVector & |
pReflectionDirection, |
|
|
miScalar |
pDotNL, |
|
|
miVector & |
pBumpNormal |
|
|
) |
|
|
[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,out] |
pLightDirection |
The (normalized) direction towards the light. |
[in] |
pReflectionDirection |
The (normalized) direction towards the reflection. |
[in] |
pDotNL |
The dot product of the direction from the current intersection
point in the state to the light and the normal in the state |
[in] |
pBumpNormal |
Uninverted normal, for lighting in mi_sample_light() |
- Returns:
- The color corresponding to this component.