From 77c2559751b081eeedbeaeceadafc97f48668464 Mon Sep 17 00:00:00 2001 From: Xonk Date: Tue, 1 Apr 2025 22:12:54 -0400 Subject: [PATCH] tiny refraction strength falloff tweak --- shaders/dimensions/composite3.fsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shaders/dimensions/composite3.fsh b/shaders/dimensions/composite3.fsh index f571169..06f1914 100644 --- a/shaders/dimensions/composite3.fsh +++ b/shaders/dimensions/composite3.fsh @@ -190,7 +190,7 @@ vec3 doRefractionEffect( inout vec2 texcoord, vec2 normal, float linearDistance, // make the tangent space normals match the directions of the texcoord UV, this greatly improves the refraction effect. vec2 UVNormal = vec2(normal.x,-normal.y); - float refractionMult = 0.3 / (1.0 + linearDistance*0.5); + float refractionMult = 0.3 / (1.0 + pow(linearDistance,0.8)); float diffractionMult = 0.035; float smudgeMult = 1.0;