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

Function drawDisplay

src/content/Animations/SplashCursor/SplashCursor.jsx:800–807  ·  view source on GitHub ↗
(target)

Source from the content-addressed store, hash-verified

798 }
799
800 function drawDisplay(target) {
801 let width = target == null ? gl.drawingBufferWidth : target.width;
802 let height = target == null ? gl.drawingBufferHeight : target.height;
803 displayMaterial.bind();
804 if (config.SHADING) gl.uniform2f(displayMaterial.uniforms.texelSize, 1.0 / width, 1.0 / height);
805 gl.uniform1i(displayMaterial.uniforms.uTexture, dye.read.attach(0));
806 blit(target);
807 }
808
809 function splatPointer(pointer) {
810 let dx = pointer.deltaX * config.SPLAT_FORCE;

Callers 1

renderFunction · 0.70

Calls 1

bindMethod · 0.45

Tested by

no test coverage detected