r_lighting toggles lights, material rename

This commit is contained in:
2022-05-22 21:54:57 +03:00
parent e93e616a97
commit 553280945e
4 changed files with 4 additions and 17 deletions

View File

@@ -218,6 +218,10 @@ namespace Game
boolValue = valueFloat != 0f;
globals.SetValue("Scene Lighting", boolValue);
Light[] lights = Level.GetActors<Light>();
foreach (Light light in lights)
light.IsActive = boolValue;
}
}