MaterialParameters
Engine/source/materials/materialParameters.h
Set shader constant values
Actually set shader constant values
Parameters:
name | Name of the constant, this should be a name contained in the array returned in getShaderConstDesc, if an invalid name is used, it is ignored. |
set(MaterialParameterHandle * handle, const F32 f)
set(MaterialParameterHandle * handle, const Point2F & fv)
set(MaterialParameterHandle * handle, const Point3F & fv)
set(MaterialParameterHandle * handle, const Point4F & fv)
set(MaterialParameterHandle * handle, const LinearColorF & fv)
set(MaterialParameterHandle * handle, const S32 f)
set(MaterialParameterHandle * handle, const Point2I & fv)
set(MaterialParameterHandle * handle, const Point3I & fv)
set(MaterialParameterHandle * handle, const Point4I & fv)
set(MaterialParameterHandle * handle, const AlignedArray< F32 > & fv)
set(MaterialParameterHandle * handle, const AlignedArray< Point2F > & fv)
set(MaterialParameterHandle * handle, const AlignedArray< Point3F > & fv)
set(MaterialParameterHandle * handle, const AlignedArray< Point4F > & fv)
set(MaterialParameterHandle * handle, const AlignedArray< S32 > & fv)
set(MaterialParameterHandle * handle, const AlignedArray< Point2I > & fv)
set(MaterialParameterHandle * handle, const AlignedArray< Point3I > & fv)
set(MaterialParameterHandle * handle, const AlignedArray< Point4I > & fv)
set(MaterialParameterHandle * handle, const MatrixF & mat, const GFXShaderConstType matrixType)
set(MaterialParameterHandle * handle, const MatrixF * mat, const U32 arraySize, const GFXShaderConstType matrixType)
getAlignmentValue(const GFXShaderConstType constType)
Returns the alignment value for the constType in bytes.
Public Functions
Returns our list of shader constants, the material can get this and just set the constants it knows about.
setSafe(MaterialParameterHandle * handle, const VALUE & v)
An inline helper which ensures the handle is valid before the virtual set method is called.
Detailed Description
Set shader constant values
Actually set shader constant values
Parameters:
name | Name of the constant, this should be a name contained in the array returned in getShaderConstDesc, if an invalid name is used, it is ignored. |
set(MaterialParameterHandle * handle, const F32 f)
Reimplemented by: MatInstParameters, ShaderMaterialParameters
set(MaterialParameterHandle * handle, const Point2F & fv)
Reimplemented by: MatInstParameters, ShaderMaterialParameters
set(MaterialParameterHandle * handle, const Point3F & fv)
Reimplemented by: MatInstParameters, ShaderMaterialParameters
set(MaterialParameterHandle * handle, const Point4F & fv)
Reimplemented by: MatInstParameters, ShaderMaterialParameters
set(MaterialParameterHandle * handle, const LinearColorF & fv)
Reimplemented by: MatInstParameters, ShaderMaterialParameters
set(MaterialParameterHandle * handle, const S32 f)
Reimplemented by: MatInstParameters, ShaderMaterialParameters
set(MaterialParameterHandle * handle, const Point2I & fv)
Reimplemented by: MatInstParameters, ShaderMaterialParameters
set(MaterialParameterHandle * handle, const Point3I & fv)
Reimplemented by: MatInstParameters, ShaderMaterialParameters
set(MaterialParameterHandle * handle, const Point4I & fv)
Reimplemented by: MatInstParameters, ShaderMaterialParameters
set(MaterialParameterHandle * handle, const AlignedArray< F32 > & fv)
Reimplemented by: MatInstParameters, ShaderMaterialParameters
set(MaterialParameterHandle * handle, const AlignedArray< Point2F > & fv)
Reimplemented by: MatInstParameters, ShaderMaterialParameters
set(MaterialParameterHandle * handle, const AlignedArray< Point3F > & fv)
Reimplemented by: MatInstParameters, ShaderMaterialParameters
set(MaterialParameterHandle * handle, const AlignedArray< Point4F > & fv)
Reimplemented by: MatInstParameters, ShaderMaterialParameters
set(MaterialParameterHandle * handle, const AlignedArray< S32 > & fv)
Reimplemented by: MatInstParameters, ShaderMaterialParameters
set(MaterialParameterHandle * handle, const AlignedArray< Point2I > & fv)
Reimplemented by: MatInstParameters, ShaderMaterialParameters
set(MaterialParameterHandle * handle, const AlignedArray< Point3I > & fv)
Reimplemented by: MatInstParameters, ShaderMaterialParameters
set(MaterialParameterHandle * handle, const AlignedArray< Point4I > & fv)
Reimplemented by: MatInstParameters, ShaderMaterialParameters
set(MaterialParameterHandle * handle, const MatrixF & mat, const GFXShaderConstType matrixType)
Reimplemented by: MatInstParameters, ShaderMaterialParameters
set(MaterialParameterHandle * handle, const MatrixF * mat, const U32 arraySize, const GFXShaderConstType matrixType)
Reimplemented by: MatInstParameters, ShaderMaterialParameters
getAlignmentValue(const GFXShaderConstType constType)
Returns the alignment value for the constType in bytes.
Reimplemented by: MatInstParameters, ShaderMaterialParameters
Vector< GFXShaderConstDesc > mShaderConstDesc
Public Functions
MaterialParameters()
~MaterialParameters()
getShaderConstDesc()
Returns our list of shader constants, the material can get this and just set the constants it knows about.
Reimplemented by: MatInstParameters
setSafe(MaterialParameterHandle * handle, const VALUE & v)
An inline helper which ensures the handle is valid before the virtual set method is called.