tweak border fog gradients. fog settings re-organized. tiny metals fresnel tweak (it now always stays tinted)

This commit is contained in:
Xonk
2023-12-27 21:04:17 -05:00
parent ea99cf846f
commit d6a83f300c
6 changed files with 106 additions and 101 deletions

View File

@ -221,7 +221,7 @@ void DoSpecularReflections(
bool hasReflections = Roughness_Threshold == 1.0 ? true : F0 * (1.0 - Roughness * Roughness_Threshold) > 0.01;
// mulitply all reflections by the albedo if it is a metal.
vec3 Metals = F0 > 229.5/255.0 ? lerp(Albedo, vec3(1.0), Fresnel) : vec3(1.0);
vec3 Metals = F0 > 229.5/255.0 ? max(Albedo, Fresnel) : vec3(1.0);
// --------------- BACKGROUND REFLECTIONS
// apply background reflections to the final color. make sure it does not exist based on the lightmap