SSAO: Clamp to 0.
This commit is contained in:
parent
6f16831d00
commit
da15aebcda
@ -66,5 +66,5 @@ void main(void)
|
|||||||
bl += isOccluded ? samplePoints[i].z * smoothstep(5 * radius, 0, distance(samplePos, FragPos)) : 0.;
|
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.);
|
||||||
}
|
}
|
||||||
|
@ -9,8 +9,8 @@ out vec4 FragColor;
|
|||||||
vec3 getCIEYxy(vec3 rgbColor);
|
vec3 getCIEYxy(vec3 rgbColor);
|
||||||
vec3 getRGBFromCIEXxy(vec3 YxyColor);
|
vec3 getRGBFromCIEXxy(vec3 YxyColor);
|
||||||
|
|
||||||
float exposure = .18;
|
float exposure = .045;
|
||||||
float Lwhite = 1.;
|
float Lwhite = 100.;
|
||||||
float delta = .0001;
|
float delta = .0001;
|
||||||
float saturation = 1.;
|
float saturation = 1.;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user