diff options
Diffstat (limited to 'src/shader/code/extra.glsl')
-rw-r--r-- | src/shader/code/extra.glsl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/shader/code/extra.glsl b/src/shader/code/extra.glsl index 5ba6207..3fec976 100644 --- a/src/shader/code/extra.glsl +++ b/src/shader/code/extra.glsl @@ -45,8 +45,10 @@ void main() { } // simple central difference discretization of the 2d curl operator - const float dxvy = (getFluidVelocity(x+1,y).y - getFluidVelocity(x-1,y).y) / (2*convLength); - const float dyvx = (getFluidVelocity(x,y+1).x - getFluidVelocity(x,y-1).x) / (2*convLength); + const float dxvy = (getFluidVelocity(x+1,y).y - getFluidVelocity(x-1,y).y) + / (2*convLength); + const float dyvx = (getFluidVelocity(x,y+1).x - getFluidVelocity(x,y-1).x) + / (2*convLength); setFluidExtra(x, y, dxvy - dyvx); } |