disable shadows casted by viewmodels, more perf stats

This commit is contained in:
2022-06-09 20:42:51 +03:00
parent 17296d3749
commit f16af1de30
3 changed files with 35 additions and 5 deletions

View File

@@ -219,7 +219,21 @@ namespace Game
globals.SetValue("Scene Lighting", boolValue);
// TODO: make sure AO is disabled (it's not)
PostFxVolume postFx = Level.FindActor<PostFxVolume>();
if (postFx != null)
{
AmbientOcclusionSettings aoSettings = postFx.AmbientOcclusion;
/*aoSettings.OverrideFlags = (aoSettings.OverrideFlags & ~AmbientOcclusionSettingsOverride.Enabled) |
(boolValue
? AmbientOcclusionSettingsOverride.Enabled
: 0 & AmbientOcclusionSettingsOverride.Enabled);
*/
aoSettings.Enabled = boolValue;
postFx.AmbientOcclusion = aoSettings;
}
// TODO: disable GI
Light[] lights = Level.GetActors<Light>();
foreach (Light light in lights)