Skip to content

Commit

Permalink
darker non-vl water color
Browse files Browse the repository at this point in the history
  • Loading branch information
null511 committed Dec 19, 2022
1 parent eb11076 commit 9fa69ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions shaders/lib/world/fog.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,12 @@ vec3 GetWaterFogColor(const in vec3 viewDir, const in vec3 sunColorFinal, const
vec3 waterFogColor = vec3(0.0);

#ifdef SKY_ENABLED
#ifndef VL_WATER_ENABLED
vec3 lightColor = scatteringF.x * sunColorFinal + scatteringF.y * moonColorFinal;
waterFogColor += waterScatterColor * lightColor;
#else
#ifdef VL_WATER_ENABLED
vec3 lightColor = sunColorFinal + moonColorFinal;
waterFogColor += 0.004 * waterScatterColor * lightColor;
#else
vec3 lightColor = scatteringF.x * sunColorFinal + scatteringF.y * moonColorFinal;
waterFogColor += 0.4 * waterScatterColor * lightColor;
#endif
#endif

Expand Down

0 comments on commit 9fa69ca

Please sign in to comment.