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

Function updateTextures

demo/js/index3.js:4148–4153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4146 updateTextures();
4147}
4148function updateTextures() {
4149 generateTextures();
4150 renderer.updateTextures();
4151
4152 requestAnimationFrame(updateTextures);
4153}
4154function generateTextures() {
4155 textureFgCtx.drawImage(videoBg, 0, textureBgSize.height, textureFgSize.width, textureFgSize.height, 0, 0, textureFgSize.width, textureFgSize.height);
4156 textureBgCtx.drawImage(videoBg, 0, 0, textureBgSize.width, textureBgSize.height, 0, 0, textureBgSize.width, textureBgSize.height);

Callers 1

setupEventsFunction · 0.70

Calls 1

generateTexturesFunction · 0.70

Tested by

no test coverage detected