SetObjectShaderConstantByName

Description

Sets a shader constant for an object by name, the constant must be marked as "uniform" in the shader source. The object will use the specified value with any shader that is applied to the object. This value will not affect any other objects that use that shader. All shader values have 1 to 4 components, this command accepts 4 values and discards any that are not used by the named variable.

Definition

SetObjectShaderConstantByName( objID, szName, value1, value2, value3, value4 )

Parameters