Torque3D Documentation / _generateds / MatInstParameters

MatInstParameters

Engine/source/materials/matInstance.h

More...

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 MatrixF * mat, const U32 arraySize, const GFXShaderConstType matrixType)

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.

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