Added OmniLight to LightDecorations to better facilitate the "underground" feeling
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user