From d864699c5ddd744ee7376c0d752b6bbb771429a2 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Fri, 8 Nov 2019 23:02:47 +0100 Subject: 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/ --- src/shader/code/vertex.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shader/code/vertex.glsl') 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)); } } -- cgit v1.2.3