fix SSS with colored shadows. FIX VPS not working.

This commit is contained in:
Xonk
2024-03-21 19:52:55 -04:00
parent 1cfb3f2f8c
commit 4bd3510497
8 changed files with 117 additions and 80 deletions

View File

@ -186,7 +186,7 @@ void DoSpecularReflections(
vec3 Lightsource_Reflection = vec3(0.0);
vec4 SS_Reflections = vec4(0.0);
Lightmap = clamp((Lightmap-0.6)*5.0, 0.0,1.0);
Lightmap = clamp((Lightmap-0.8)*7.0, 0.0,1.0);
Roughness = 1.0 - Roughness; Roughness *= Roughness;
F0 = F0 == 0.0 ? 0.02 : F0;