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

Function updateTexture

demo/js/main.js:4788–4790  ·  view source on GitHub ↗
(gl, source)

Source from the content-addressed store, hash-verified

4786}
4787
4788function updateTexture(gl, source) {
4789 gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, source);
4790}
4791
4792function setRectangle(gl, x, y, width, height) {
4793 var x1 = x;

Callers 1

createTextureFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected