SetObjectShaderConstantArrayVec4ByName
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 vec4.
Definition
SetObjectShaderConstantArrayVec4ByName( objID, szName, arrayIndex, value1, value2, value3, value4 )
void agk::SetObjectShaderConstantArrayVec4ByName( uint32_t objID, const char *szName, uint32_t arrayIndex, float value1, float value2, float value3, float value4 )
Parameters
- objID - The ID of the object 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
- value3 - The Z component of the new value
- value4 - The W component of the new value