Added OmniLight to LightDecorations to better facilitate the "underground" feeling

This commit is contained in:
=
2026-04-26 10:50:10 +02:00
parent 4b3c4c1ae2
commit 798fe23bb6
2 changed files with 13 additions and 3 deletions
+13
View File
@@ -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;