SetShaderConstantArrayVec2ByName
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 vec2
Definition
SetShaderConstantArrayVec2ByName( shaderID, szName, arrayIndex, value1, value2 )
void agk::SetShaderConstantArrayVec2ByName( uint32_t shaderID, const char *szName, uint32_t arrayIndex, float value1, float value2 )
Parameters
- shaderID - The ID of the shader to modify.
- szName - The name of the constant to change, as defined in the shader source file.
- arrayIndex - The element of the array to modify.
- value1 - The X component of the new value
- value2 - The Y component of the new value