Skip to content

Commit

Permalink
greatupdatewhaterversr
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Dobryakov authored and Pavel Dobryakov committed Aug 25, 2019
1 parent b6e9825 commit 2240ab2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ let config = {
SIM_RESOLUTION: 128,
DYE_RESOLUTION: 1024,
CAPTURE_RESOLUTION: 512,
DENSITY_DISSIPATION: 2,
VELOCITY_DISSIPATION: 2,
DENSITY_DISSIPATION: 1,
VELOCITY_DISSIPATION: 0.2,
PRESSURE: 0.8,
PRESSURE_ITERATIONS: 20,
CURL: 30,
Expand All @@ -52,7 +52,7 @@ let config = {
BLOOM_SOFT_KNEE: 0.7,
SUNRAYS: true,
SUNRAYS_RESOLUTION: 196,
SUNRAYS_WEIGHT: 0.3,
SUNRAYS_WEIGHT: 1.0,
}

function pointerPrototype () {
Expand Down Expand Up @@ -1443,7 +1443,10 @@ canvas.addEventListener('touchstart', e => {
let touch = touches[i];
let pointer = pointers.find(p => p.id == touch.identifier);
if (pointer == null)
{
pointer = new pointerPrototype();
pointers.push(pointer);
}
let posX = scaleByPixelRatio(touch.pageX);
let posY = scaleByPixelRatio(touch.pageY);
updatePointerDownData(pointer, touch.identifier, posX, posY);
Expand Down

0 comments on commit 2240ab2

Please sign in to comment.