Finished first EA Version #1

Merged
Nicola merged 110 commits from dev into main 2026-05-19 20:01:13 +02:00
2 changed files with 13 additions and 3 deletions
Showing only changes of commit 798fe23bb6 - Show all commits
-3
View File
@@ -22,9 +22,6 @@ sky = SubResource("Sky_u44n3")
[node name="World" type="Node3D" parent="." unique_id=770208789] [node name="World" type="Node3D" parent="." unique_id=770208789]
script = ExtResource("1_xkndl") 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] [node name="SteamworksHandler" type="Node" parent="." unique_id=1183440473]
script = ExtResource("2_xkndl") script = ExtResource("2_xkndl")
+13
View File
@@ -131,6 +131,19 @@ public partial class World : Node3D
} }
decoration = new MeshInstance3D(); decoration = new MeshInstance3D();
(decoration as MeshInstance3D).Mesh = mesh; (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.Transform = list[i];
decoration.Position += placeholders[j].pos; decoration.Position += placeholders[j].pos;
decoration.Name = placeholders[j].name + j; decoration.Name = placeholders[j].name + j;