diff options
Update lattice multiple times per frame
Controlled by `--lupf` _Lattice updates per frame_
MLUPS are now calculated and displayed.
While performance is still bad compared to a optimized GPU implementation (such
as [1] or [2]) this improves the situation.
[1]: https://tree.kummerlaender.eu/projects/symlbm_playground/
[2]: https://code.kummerlaender.eu/boltzgen/about/
Diffstat (limited to 'src/shader/code/vertex.glsl')
-rw-r--r-- | src/shader/code/vertex.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader/code/vertex.glsl b/src/shader/code/vertex.glsl index 6ad54cf..10abf0c 100644 --- a/src/shader/code/vertex.glsl +++ b/src/shader/code/vertex.glsl @@ -58,7 +58,7 @@ float restrictedCurl(float curl) { if ( abs(curl) < 1.0 ) { return 0.5; } else { - return 0.5 + 0.5*min(1.0, curl / (50*palette_factor)); + return 0.5 + 0.5*min(1.0, curl / sq(palette_factor)); } } |