How to use the uniform4f function from bindings

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

945
946
947
948
949
950
951
952
953
954
955
    throw new TypeError('Expected uniform3iv(WebGLUniformLocation location, Int32Array x)');
  }
  return _uniform3iv(location ? location._ : 0, x);
}


var _uniform4f = gl.uniform4f;
gl.uniform4f = function uniform4f(location, x, y, z, w) {
  if (!(arguments.length === 5 && (location === null || location instanceof gl.WebGLUniformLocation) && typeof x === "number" && typeof y === "number" && typeof z === "number" && typeof w === "number")) {
    throw new TypeError('Expected uniform4f(WebGLUniformLocation location, number x, number y, number z, number w)');
  }
fork icon264
star icon386
watch icon0

+ 81 other calls in file

919
920
921
922
923
924
925
926
927
928
GL.uniform4f = function() {
    if (GL.debug) {
        console.log("uniform4f");
        console.log(arguments);
    }
    return gl_bindings.uniform4f.apply(null, arguments);
};
GL.uniform4fv = function() {
    if (GL.debug) {
        console.log("uniform4fv");
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)