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