MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / _renderPassthrough

Method _renderPassthrough

src/tools/texture-lab/renderer.js:485–492  ·  view source on GitHub ↗
(inputTexture, flipY = 1.0)

Source from the content-addressed store, hash-verified

483 }
484
485 _renderPassthrough(inputTexture, flipY = 1.0) {
486 const gl = this.gl;
487 this._useProgram(this.programs.passthrough, flipY);
488 gl.activeTexture(gl.TEXTURE0);
489 gl.bindTexture(gl.TEXTURE_2D, inputTexture);
490 gl.uniform1i(this.programs.passthrough.uniforms.u_image, 0);
491 gl.drawArrays(gl.TRIANGLES, 0, 6);
492 }
493
494 _renderNoise(params, inputTexture, width, height, seed, flipY = 1.0) {
495 const gl = this.gl;

Callers 1

_renderEffectMethod · 0.95

Calls 1

_useProgramMethod · 0.95

Tested by

no test coverage detected