How to use the uniform3f function from bindings

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

913
914
915
916
917
918
919
920
921
922
923
    throw new TypeError('Expected uniform2iv(WebGLUniformLocation location, Int32Array v)');
  }
  return _uniform2iv(location ? location._ : 0, v);
}


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

+ 81 other calls in file

889
890
891
892
893
894
895
896
897
898
GL.uniform3f = function() {
    if (GL.debug) {
        console.log("uniform3f");
        console.log(arguments);
    }
    return gl_bindings.uniform3f.apply(null, arguments);
};
GL.uniform3fv = function() {
    if (GL.debug) {
        console.log("uniform3fv");
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)