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

Function activeTexture

src/webgl.js:100–102  ·  view source on GitHub ↗
(gl,i)

Source from the content-addressed store, hash-verified

98 gl["uniform"+type](location,...args);
99}
100export function activeTexture(gl,i){
101 gl.activeTexture(gl["TEXTURE"+i]);
102}
103export function updateTexture(gl,source){
104 gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, source);
105}

Callers 1

createTextureFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected