SetShaderConstantArrayVec3ByName

Description

Sets a shader constant array index by name, the constant must be marked as "uniform" in the shader source. Array indices start at 0, if the array index is out of bounds then it will be ignored and no changes will be made. This will affect all objects drawn using this shader. 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

SetShaderConstantArrayVec3ByName( shaderID, szName, arrayIndex, value1, value2, value3 )

Parameters