Merge nibu/rtd-cut8-forward-plus into Cut 7+8 integration
This commit is contained in:
commit
fa4e4c9860
21 changed files with 1317 additions and 226 deletions
|
|
@ -1672,6 +1672,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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue