How to use the uniform1f function from bindings

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

847
848
849
850
851
852
853
854
855
856
857
    throw new TypeError('Expected texSubImage2D(number target, number level, number xoffset, number yoffset, number width, number height, number format, number type, ArrayBufferView pixels)');
  }
  return _texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels);
}


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

+ 81 other calls in file

829
830
831
832
833
834
835
836
837
838
GL.uniform1f = function() {
    if (GL.debug) {
        console.log("uniform1f");
        console.log(arguments);
    }
    return gl_bindings.uniform1f.apply(null, arguments);
};
GL.uniform1fv = function() {
    if (GL.debug) {
        console.log("uniform1fv");
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)