MCPcopy Create free account
hub / github.com/codrops/RainEffect / updateTexture

Function updateTexture

demo/js/index2.js:4836–4838  ·  view source on GitHub ↗
(gl, source)

Source from the content-addressed store, hash-verified

4834}
4835
4836function updateTexture(gl, source) {
4837 gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, source);
4838}
4839
4840function setRectangle(gl, x, y, width, height) {
4841 var x1 = x;

Callers 1

createTextureFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected