From 09cfd85603f8c0b5a8f33924c8cee89465c9967b Mon Sep 17 00:00:00 2001
From: Alexander Rose <alexander.rose@weirdbyte.de>
Date: Thu, 16 Jan 2020 11:38:09 -0500
Subject: [PATCH] tweaked shader const

---
 src/mol-gl/shader/chunks/common.glsl.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mol-gl/shader/chunks/common.glsl.ts b/src/mol-gl/shader/chunks/common.glsl.ts
index 20dc14407..14fc36911 100644
--- a/src/mol-gl/shader/chunks/common.glsl.ts
+++ b/src/mol-gl/shader/chunks/common.glsl.ts
@@ -11,7 +11,7 @@ float intMod(const in float a, const in float b) { return a - b * float(int(a) /
 float pow2(const in float x) { return x*x; }
 
 const float maxFloat = 10000.0; // NOTE constant also set in TypeScript
-const float floatLogFactor = log(maxFloat + 1.0);
+const float floatLogFactor = 4.0000434273; // log(maxFloat + 1.0);
 float encodeFloatLog(const in float value) { return log(value + 1.0) / floatLogFactor; }
 float decodeFloatLog(const in float value) { return exp(value * floatLogFactor) - 1.0; }
 
-- 
GitLab