diff options
author | Adrian Kummerlaender | 2019-11-08 23:02:47 +0100 |
---|---|---|
committer | Adrian Kummerlaender | 2019-11-08 23:02:47 +0100 |
commit | d864699c5ddd744ee7376c0d752b6bbb771429a2 (patch) | |
tree | 9dd8973b17a0617ce595c2b92ec1d0faa8388083 /src/shader/code/vertex.glsl | |
parent | 35e2c7a949dedf3221887ffdc14dddb4c5e84f4c (diff) | |
download | compustream-master.tar compustream-master.tar.gz compustream-master.tar.bz2 compustream-master.tar.lz compustream-master.tar.xz compustream-master.tar.zst compustream-master.zip |
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)); } } |