How to use the uniform4fv function from bindings

Find comprehensive JavaScript bindings.uniform4fv code examples handpicked from public code repositorys.

953
954
955
956
957
958
959
960
961
962
963
    throw new TypeError('Expected uniform4f(WebGLUniformLocation location, number x, number y, number z, number w)');
  }
  return _uniform4f(location ? location._ : 0, x, y, z, w);
}


var _uniform4fv = gl.uniform4fv;
gl.uniform4fv = function uniform4fv(location, v) {
  if (!(arguments.length === 2 && (location === null || location instanceof gl.WebGLUniformLocation) && typeof v === "object")) {
    throw new TypeError('Expected uniform4fv(WebGLUniformLocation location, FloatArray v)');
  }
fork icon264
star icon386
watch icon0

+ 81 other calls in file

927
928
929
930
931
932
933
934
935
936
    if (GL.debug) {
        console.log("uniform4fv");
        console.log(arguments);
    }
    arguments[1] = new Float32Array(arguments[1]);
    return gl_bindings.uniform4fv.apply(null, arguments);
};
GL.uniform4i = function() {
    if (GL.debug) {
        console.log("uniform4i");
fork icon0
star icon0
watch icon0

+ 70 other calls in file

Other functions in bindings

Sorted by popularity

function icon

bindings.createKey is the most popular function in bindings (8616 examples)