Skip to content

Commit

Permalink
fixed overworld again
Browse files Browse the repository at this point in the history
  • Loading branch information
hotsu0p committed Mar 16, 2024
1 parent 4f47d7a commit 6de8354
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions shaders/lib/lighting/forwardLighting.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void GetLighting(inout vec3 albedo, out vec3 shadow, vec3 viewPos, vec3 worldPos
#endif

#ifdef OVERWORLD
float shadowMult = (1.0 * rainStrength) * shadowFade;
float shadowMult = (1.0 - 0.95 * rainStrength) * shadowFade;
vec3 sceneLighting = mix(ambientCol * lightmap.y, lightCol, fullShadow * shadowMult);
sceneLighting *= lightmap.y * lightmap.y * (1.0 + scattering * shadow);

Expand Down Expand Up @@ -127,11 +127,11 @@ void GetLighting(inout vec3 albedo, out vec3 shadow, vec3 viewPos, vec3 worldPos
desatColor = mix(vec3(0.4), desatColor, sqrt(lightmap.y)) * 1.7;
#endif

#ifdef NETHER
float desatAmount = 0.9 - smoothstep(0.25,1.0,(1.0 - lightmap.x) * (1.0 - lightmap.x)) * (1.0 - lightFlatten) * 1.5;
#ifdef NETHER
float desatAmount = 1.0 - smoothstep(0.25,1.0,(1.0 - lightmap.x) * (1.0 - lightmap.x)) * (1.0 - lightFlatten);

vec3 desatColor = normalize(netherColSqrt.rgb + 0.000001) * 2.0;
#endif
vec3 desatColor = normalize(netherColSqrt.rgb + 0.000001) * 1.7;
#endif

#ifdef END
float desatAmount = 1.0 - smoothstep(0.25,1.0,(1.0 - lightmap.x) * (1.0 - lightmap.x)) * (1.0 - lightFlatten);
Expand Down

0 comments on commit 6de8354

Please sign in to comment.