Better Organized Generated Normal stuff
This commit is contained in:
1 parent
0f859671ea
commit
16d5613af1
25 files changed
+1204
-497
No files matched your search
@@ -7,7 +7,7 @@ vec3 GetSkyColor(vec3 viewPos, bool isReflection) {
|
||||
|
||||
float groundDensity = 0.1 * (4.0 - 3.0 * sunVisibility) *
|
||||
(10.0 * rainStrength * rainStrength + 1.0);
|
||||
|
||||
|
||||
float exposure = exp2(timeBrightness * 0.75 - 0.75 + SKY_EXPOSURE_D);
|
||||
float nightExposure = exp2(-3.5 + SKY_EXPOSURE_N);
|
||||
float weatherExposure = exp2(SKY_EXPOSURE_W);
|
||||
@@ -42,8 +42,8 @@ vec3 GetSkyColor(vec3 viewPos, bool isReflection) {
|
||||
lightSky = lightSky / (1.0 + lightSky * rainStrength);
|
||||
|
||||
sky = mix(
|
||||
sqrt(sky * (1.0 - lightMix)),
|
||||
sqrt(lightSky),
|
||||
sqrt(sky * (1.0 - lightMix)),
|
||||
sqrt(lightSky),
|
||||
lightMix
|
||||
);
|
||||
sky *= sky;
|
||||
|
||||
Reference in new issue
Block a user