Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

uniform2f method

Assigns two dimensional floating point values to a uniform variable for the current program object.

IE11

 

Syntax

WebGLRenderingContext.uniform2f(location, x, y);

Parameters

location [in]

Type: WebGLUniformLocation

The location of the uniform variable to be updated.

x [in]

Type: Number

Horizontal value to assign.

y [in]

Type: Number

Vertical value to assign.

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 current program object.
  • If location is an invalid location for the current program object and location isn't equal to -1.

 

See also

WebGLRenderingContext

 

 

Show:
© 2015 Microsoft