Expand Minimize

uniform4fv method

Assigns four dimensional floating point vector array values to a uniform variable for the current program object.

IE11

 

Syntax

WebGLRenderingContext.uniform4fv(location, value);

Parameters

location [in]

Type: WebGLUniformLocation

value [in]

Type: Float32Array

Vector array

Return value

This method does not return a value.

Remarks

WebGL errorDescription
gl.INVALID_OPERATION
  • The location doesn't belong to the current program.
  • There is no active program.
  • value references a typed array instance other than Float32Array.
  • Uniform specified by location isn't a float type.
gl.INVALID_VALUEThe length of value array isn't a multiple of the number of required components.

 

If the location is null, no uniforms are updated and no error code is generated.

See also

WebGLRenderingContext

 

 

Show:
© 2014 Microsoft