disable shadows casted by viewmodels, more perf stats
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user