diff --git a/data/shaders/ssao.frag b/data/shaders/ssao.frag index 92e34966c..4e3cbaa7c 100644 --- a/data/shaders/ssao.frag +++ b/data/shaders/ssao.frag @@ -66,5 +66,5 @@ void main(void) bl += isOccluded ? samplePoints[i].z * smoothstep(5 * radius, 0, distance(samplePos, FragPos)) : 0.; } - AO = 1.0 - bl * invSamples; + AO = max(1.0 - bl * invSamples, 0.); } diff --git a/data/shaders/tonemap.frag b/data/shaders/tonemap.frag index 923e51d59..d1496f1af 100644 --- a/data/shaders/tonemap.frag +++ b/data/shaders/tonemap.frag @@ -9,8 +9,8 @@ out vec4 FragColor; vec3 getCIEYxy(vec3 rgbColor); vec3 getRGBFromCIEXxy(vec3 YxyColor); -float exposure = .18; -float Lwhite = 1.; +float exposure = .045; +float Lwhite = 100.; float delta = .0001; float saturation = 1.;