(target)
| 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; |