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

Function activeTexture

demo/js/main.js:4784–4786  ·  view source on GitHub ↗
(gl, i)

Source from the content-addressed store, hash-verified

4782}
4783
4784function activeTexture(gl, i) {
4785 gl.activeTexture(gl["TEXTURE" + i]);
4786}
4787
4788function updateTexture(gl, source) {
4789 gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, source);

Callers 1

createTextureFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected