ShaderAttribute::SetShaderParameterValue
Defined in:
Sets a shader parameter value.
C4Shaders.h
Prototype
void SetShaderParameterValue(int32 slot, const Vector4D& param);
Parameters
slot |
The shader parameter slot. This can be between 0 and 7, inclusive. |
param |
The new shader parameter value. |
Description
The SetShaderParameterValue
function sets the shader parameter value indexed by the slot
parameter to the value specified by the param
parameter. This affects all constant processes in both shader graphs contained in the shader attribute. For vector and color constant processes, all four components of the parameter are used. For scalar constant processes, only the x
component of the parameter is used.