make ambient brightness effect rtao/ssgi

This commit is contained in:
Xonk 2024-03-20 22:09:48 -04:00
parent 6576c835dc
commit 6b004ba0db
2 changed files with 2 additions and 16 deletions

View File

@ -123,20 +123,6 @@ vec3 colorGrading(vec3 color) {
}
#endif
//float3 crosstalk_and_saturation(float3 color){
//
// float crosstalk = 0.0;
// float saturation = 0.0
//
// float luminance = dot(COLOR, vec3(0.21, 0.72, 0.07));
//
// float3 difference = color - luminance;
//
// color = color + difference*(-luminance*crosstalk + saturation);
//
// return color;
//}
uniform int hideGUI;
void main() {
#ifdef BICUBIC_UPSCALING

View File

@ -327,9 +327,9 @@ void ApplySSRT(
// rayDir.y = mix(-1.0, rayDir.y, lightmaps.y*lightmaps.y);
skycontribution = ((skyCloudsFromTexLOD(rayDir, colortex4, 0).rgb / 30.0) * 2.5) * Lighting.a + Lighting.rgb;
skycontribution = ((skyCloudsFromTexLOD(rayDir, colortex4, 0).rgb / 30.0) * 2.5 * ambient_brightness) * Lighting.a + Lighting.rgb;
#else
skycontribution = ((skyCloudsFromTexLOD2(rayDir, colortex4, 6).rgb / 30.0) * 2.5) * Lighting.a + Lighting.rgb;
skycontribution = ((skyCloudsFromTexLOD2(rayDir, colortex4, 6).rgb / 30.0) * 2.5 * ambient_brightness) * Lighting.a + Lighting.rgb;
#endif
#else