From 798fe23bb61e046bd64baa6f748434ffbf22d9d5 Mon Sep 17 00:00:00 2001 From: = <=> Date: Sun, 26 Apr 2026 10:50:10 +0200 Subject: [PATCH] Added OmniLight to LightDecorations to better facilitate the "underground" feeling --- Game.tscn | 3 --- Scripts/World.cs | 13 +++++++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Game.tscn b/Game.tscn index 079c6da..9c82753 100644 --- a/Game.tscn +++ b/Game.tscn @@ -22,9 +22,6 @@ sky = SubResource("Sky_u44n3") [node name="World" type="Node3D" parent="." unique_id=770208789] script = ExtResource("1_xkndl") -[node name="DirectionalLight3D" type="DirectionalLight3D" parent="World" unique_id=1521742758] -transform = Transform3D(1, 0, 0, 0, 0.89061797, 0.45475236, 0, -0.45475236, 0.89061797, 0, 10.721322, 3.5568523) - [node name="SteamworksHandler" type="Node" parent="." unique_id=1183440473] script = ExtResource("2_xkndl") diff --git a/Scripts/World.cs b/Scripts/World.cs index e21e025..da95072 100644 --- a/Scripts/World.cs +++ b/Scripts/World.cs @@ -131,6 +131,19 @@ public partial class World : Node3D } decoration = new MeshInstance3D(); (decoration as MeshInstance3D).Mesh = mesh; + if (placeholders[j].name.ToLower() == "light") + { + GD.Print("Adding OmniLight"); + decoration.AddChild(new OmniLight3D() + { + OmniAttenuation = 2f, + LightColor = new Color("#eae7ad"), + ShadowEnabled = true, + LightEnergy = 5f, + LightIndirectEnergy = 1.5f, + Position = new Vector3(0.5f, 0, 0) + }); + } decoration.Transform = list[i]; decoration.Position += placeholders[j].pos; decoration.Name = placeholders[j].name + j;