r_lighting toggles lights, material rename
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user