From 6f1d3529fdd7380d2ee60bef7df0ad5b4f79f880 Mon Sep 17 00:00:00 2001 From: Xonk Date: Sun, 23 Jul 2023 00:34:30 -0400 Subject: [PATCH] small tweak --- shaders/composite2.fsh | 2 +- shaders/composite3.fsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shaders/composite2.fsh b/shaders/composite2.fsh index 4ec324f..2766b87 100644 --- a/shaders/composite2.fsh +++ b/shaders/composite2.fsh @@ -401,7 +401,7 @@ void main() { // estEyeDepth = max(Water_Top_Layer - cameraPosition.y,0.0); vec3 vl = vec3(0.0); - waterVolumetrics(vl, vec3(0.0), fragpos, estEyeDepth, estEyeDepth, length(fragpos), noise, totEpsilon, scatterCoef, ambientColVol, lightColVol*(1.0-pow(1.0-sunElevation*lightCol.a,5.0)) , dot(normalize(fragpos), normalize(sunVec) * lightCol.a )); + waterVolumetrics(vl, vec3(0.0), fragpos, estEyeDepth, estEyeDepth, length(fragpos), noise, totEpsilon, scatterCoef, ambientColVol, lightColVol*(1.0-pow(1.0-sunElevation*lightCol.a,5.0)) , dot(normalize(fragpos), normalize(sunVec* lightCol.a ) )); gl_FragData[0] = clamp(vec4(vl,1.0),0.000001,65000.); } diff --git a/shaders/composite3.fsh b/shaders/composite3.fsh index 750064b..6fe8fdc 100644 --- a/shaders/composite3.fsh +++ b/shaders/composite3.fsh @@ -316,7 +316,7 @@ void main() { // bloomy rain effect float rainDrops = clamp(texture2D(colortex9,texcoord).a, 0.0,1.0); - if(rainDrops > 0.0) vl.a *= clamp(1.0 - pow(rainDrops*5.0,2),0.0,1.0); + if(rainDrops > 0.0) bloomyFogMult *= clamp(1.0 - pow(rainDrops*5.0,1),0.0,1.0); /// lava. if (isEyeInWater == 2){