Skip to content

Commit

Permalink
New minlight amount
Browse files Browse the repository at this point in the history
  • Loading branch information
TechDevOnGitHub committed Jul 12, 2022
1 parent 2bad6a0 commit e7e2690
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shaders/lib/lighting/forwardLighting.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void GetLighting(
float newLightmap = pow(lightmap.x, 10.0) * (EMISSIVE_BRIGHTNESS + 0.5) + lightmap.x * 0.7;
vec3 blockLighting = blocklightCol * newLightmap * newLightmap;

float minLighting = (0.009 * screenBrightness + 0.001) * (1.0 - eBS);
float minLighting = 0.04 * (1.0 - eBS);

#ifdef TOON_LIGHTMAP
minLighting *= floor(smoothLighting * 8.0 + 1.001) / 4.0;
Expand All @@ -106,7 +106,7 @@ void GetLighting(

float nightVisionLighting = nightVision * 0.25;

albedo *= sceneLighting + blockLighting + emissiveLighting + nightVisionLighting + minLighting;
albedo *= max(sceneLighting + blockLighting + emissiveLighting + nightVisionLighting, minLighting);
albedo *= quarterNdotU * smoothLighting * smoothLighting;

#ifdef DESATURATION
Expand Down

0 comments on commit e7e2690

Please sign in to comment.