From 303025eda4e10a0d962231c7b3349f8b9cb8cfa1 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 17 Apr 2019 20:50:49 +0200 Subject: Improve color palette of Knudsen criterion mode --- src/shader/code/collide.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shader/code/collide.glsl') diff --git a/src/shader/code/collide.glsl b/src/shader/code/collide.glsl index 45e06f8..d3d004d 100644 --- a/src/shader/code/collide.glsl +++ b/src/shader/code/collide.glsl @@ -34,7 +34,7 @@ const float relaxationFrequency = 1 / relaxationTime; /// Unit conversion -const float convLength = physCharLength / nX; +const float convLength = physCharLength / max(nX,nY); const float convTime = (relaxationTime - 0.5) / invCs2 * convLength*convLength / physViscosity; const float convVelocity = convLength / convTime; const float convViscosity = convLength * convLength / convTime; -- cgit v1.2.3