Cut 8: Forward+ Vulkan cutover, atmospheric scattering sky, volumetric fog, SSR, 4-split shadows, & linear HDR

This commit is contained in:
Meta Vens 2026-12-05 17:34:33 +01:00
commit 35626ccd02
21 changed files with 1232 additions and 227 deletions

View file

@ -1515,6 +1515,15 @@ public sealed class VehicleAssetCache : IDisposable
return;
}
if (mName.Contains("glass") || mName.Contains("visor") || mName.Contains("canopy") || mName.Contains("lens"))
{
Color b = sm.AlbedoColor.SrgbToLinear();
linearColor = new Vector3(b.R, b.G, b.B);
band = 8;
roughness = Math.Clamp(sm.Roughness, 0.08f, 0.16f);
return;
}
Color lin = sm.AlbedoColor.SrgbToLinear();
linearColor = new Vector3(lin.R, lin.G, lin.B);
band = sm.Metallic >= 0.70f ? 2 : (sm.Metallic >= 0.35f ? 1 : 0);