MatInstParameters
Engine/source/materials/matInstance.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
MatInstParameters(MaterialParameters * matParams)
Returns our list of shader constants, the material can get this and just set the constants it knows about.
loadParameters(ProcessedMaterial * pmat)
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 from: MaterialParameters
set(MaterialParameterHandle * handle, const Point2F & fv)
Reimplemented from: MaterialParameters
set(MaterialParameterHandle * handle, const Point3F & fv)
Reimplemented from: MaterialParameters
set(MaterialParameterHandle * handle, const Point4F & fv)
Reimplemented from: MaterialParameters
set(MaterialParameterHandle * handle, const LinearColorF & fv)
Reimplemented from: MaterialParameters
set(MaterialParameterHandle * handle, const S32 f)
Reimplemented from: MaterialParameters
set(MaterialParameterHandle * handle, const Point2I & fv)
Reimplemented from: MaterialParameters
set(MaterialParameterHandle * handle, const Point3I & fv)
Reimplemented from: MaterialParameters
set(MaterialParameterHandle * handle, const Point4I & fv)
Reimplemented from: MaterialParameters
set(MaterialParameterHandle * handle, const AlignedArray< F32 > & fv)
Reimplemented from: MaterialParameters
set(MaterialParameterHandle * handle, const AlignedArray< Point2F > & fv)
Reimplemented from: MaterialParameters
set(MaterialParameterHandle * handle, const AlignedArray< Point3F > & fv)
Reimplemented from: MaterialParameters
set(MaterialParameterHandle * handle, const AlignedArray< Point4F > & fv)
Reimplemented from: MaterialParameters
set(MaterialParameterHandle * handle, const AlignedArray< S32 > & fv)
Reimplemented from: MaterialParameters
set(MaterialParameterHandle * handle, const AlignedArray< Point2I > & fv)
Reimplemented from: MaterialParameters
set(MaterialParameterHandle * handle, const AlignedArray< Point3I > & fv)
Reimplemented from: MaterialParameters
set(MaterialParameterHandle * handle, const AlignedArray< Point4I > & fv)
Reimplemented from: MaterialParameters
set(MaterialParameterHandle * handle, const MatrixF & mat, const GFXShaderConstType matrixType)
Reimplemented from: MaterialParameters
set(MaterialParameterHandle * handle, const MatrixF * mat, const U32 arraySize, const GFXShaderConstType matrixType)
Reimplemented from: MaterialParameters
getAlignmentValue(const GFXShaderConstType constType)
Reimplemented from: MaterialParameters
MaterialParameters * mParameters
bool mOwnParameters
Public Functions
MatInstParameters()
MatInstParameters(MaterialParameters * matParams)
~MatInstParameters()
getShaderConstDesc()
Reimplemented from: MaterialParameters
loadParameters(ProcessedMaterial * pmat)