SetObjectShaderConstantArrayVec2ByName

Description

Sets a shader constant array index 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. Array indices start at 0, if the array index exceeds the size of the array defined in the shader then the result is undefined. This command can only set arrays of vec2.

Definition

SetObjectShaderConstantArrayVec2ByName( objID, szName, arrayIndex, value1, value2 )

Parameters