From 3188ff4a79efb84c9bf945e543f3fb10a91bd872 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 15 Sep 2020 22:16:51 +0200 Subject: [PATCH] - tewaked the distance calculation in the shader to improve palette emulation brightness. Fixes #393 --- wadsrc/static/shaders/glsl/func_paletted.fp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/shaders/glsl/func_paletted.fp b/wadsrc/static/shaders/glsl/func_paletted.fp index e39760fd4..681c2ce3f 100644 --- a/wadsrc/static/shaders/glsl/func_paletted.fp +++ b/wadsrc/static/shaders/glsl/func_paletted.fp @@ -20,7 +20,7 @@ vec4 ProcessTexel() float z; if (((uPalLightLevels >> 8) & 0xff) == 2) { - z = distance(pixelpos.xyz, uCameraPos.xyz); + z = distance(pixelpos.xyz, uCameraPos.xyz)*0.7; } else {