diff --git a/Content/Materials/WeaponMaterial.flax b/Content/Materials/WeaponMaterial.flax index 9a85566..a97bcac 100644 Binary files a/Content/Materials/WeaponMaterial.flax and b/Content/Materials/WeaponMaterial.flax differ diff --git a/Content/Materials/weapmattest2.flax b/Content/Materials/weapons/RocketLauncher.flax similarity index 100% rename from Content/Materials/weapmattest2.flax rename to Content/Materials/weapons/RocketLauncher.flax diff --git a/Content/Scenes/MainScene.scene b/Content/Scenes/MainScene.scene index f5c45b4..cb4b229 100644 --- a/Content/Scenes/MainScene.scene +++ b/Content/Scenes/MainScene.scene @@ -210,23 +210,6 @@ "PostFxMaterials": {} } }, - { - "ID": "aee0adec4b308ede0c0d32a0e1c5d585", - "TypeName": "FlaxEngine.DirectionalLight", - "ParentID": "194e05f445ece24ec5448d886e1334df", - "IsActive": false, - "Name": "DirectionalLight", - "Transform": { - "Orientation": { - "X": 0.6622079610824585, - "Y": 0.0, - "Z": 0.0, - "W": 0.7493202090263367 - } - }, - "Layer": 1, - "Brightness": 0.5999999046325684 - }, { "ID": "fc79615444d89ee2d290a295e1ad8004", "TypeName": "FlaxEngine.SkyLight", diff --git a/Source/Game/Console/EngineSubsystem.cs b/Source/Game/Console/EngineSubsystem.cs index 493e5fb..6dd689e 100644 --- a/Source/Game/Console/EngineSubsystem.cs +++ b/Source/Game/Console/EngineSubsystem.cs @@ -218,6 +218,10 @@ namespace Game boolValue = valueFloat != 0f; globals.SetValue("Scene Lighting", boolValue); + + Light[] lights = Level.GetActors(); + foreach (Light light in lights) + light.IsActive = boolValue; } }