C4 Engine
C4 Engine API Documentation

ShaderAttribute::SetShaderParameterValue

Defined in:  C4Shaders.h
Sets a shader parameter value.
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.