SetObjectShaderConstantArrayVec3ByName

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 vec3.

Note that arrays of vec3 have an inefficient use of space and are padded to vec4, so may be slghtly slower than using an array of vec4.

Definition

SetObjectShaderConstantArrayVec3ByName( objID, szName, arrayIndex, value1, value2, value3 )

Parameters