MCPcopy Index your code
hub / github.com/PavelDoGreat/WebGL-Fluid-Simulation / splatPointer

Function splatPointer

script.js:1421–1425  ·  view source on GitHub ↗
(pointer)

Source from the content-addressed store, hash-verified

1419}
1420
1421function splatPointer (pointer) {
1422 let dx = pointer.deltaX * config.SPLAT_FORCE;
1423 let dy = pointer.deltaY * config.SPLAT_FORCE;
1424 splat(pointer.texcoordX, pointer.texcoordY, dx, dy, pointer.color);
1425}
1426
1427function multipleSplats (amount) {
1428 for (let i = 0; i < amount; i++) {

Callers 1

applyInputsFunction · 0.85

Calls 1

splatFunction · 0.85

Tested by

no test coverage detected