Fix breakable wall lighting (hopefully)
This commit is contained in:
@@ -6394,7 +6394,7 @@ subdivide_width = 1
|
||||
subdivide_depth = 1
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_0f351"]
|
||||
size = Vector3(38.8035, 9.62897, 38.2003)
|
||||
size = Vector3(38.8035, 9.62897, 46.1175)
|
||||
|
||||
[node name="BreakableWallRoom" type="Node3D"]
|
||||
script = ExtResource("1_afm5x")
|
||||
@@ -6415,6 +6415,7 @@ surface_material_override/0 = ExtResource("4_lctjc")
|
||||
|
||||
[node name="BASIN ROOM" type="MeshInstance3D" parent="Model/Special Room - Secret "]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.35381, 3.52938, -22.7395)
|
||||
extra_cull_margin = 100.0
|
||||
mesh = SubResource("ArrayMesh_lbdmg")
|
||||
skeleton = NodePath("")
|
||||
|
||||
@@ -7117,10 +7118,30 @@ mesh = SubResource("PlaneMesh_tk2fq")
|
||||
[node name="Lights" type="Node3D" parent="."]
|
||||
|
||||
[node name="OmniLight3D" type="OmniLight3D" parent="Lights"]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.28289, 6.83228, -22.9654)
|
||||
light_energy = 2.049
|
||||
visible = false
|
||||
light_indirect_energy = 0.0
|
||||
light_volumetric_fog_energy = 0.0
|
||||
light_bake_mode = 1
|
||||
shadow_enabled = true
|
||||
omni_range = 13.126
|
||||
shadow_opacity = 0.47
|
||||
shadow_caster_mask = 4294967294
|
||||
distance_fade_enabled = true
|
||||
distance_fade_begin = 100.0
|
||||
distance_fade_length = 100.0
|
||||
omni_range = 20.0
|
||||
omni_attenuation = -1.001
|
||||
|
||||
[node name="OmniLight3D3" type="OmniLight3D" parent="Lights"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.28289, 6.83228, -22.9654)
|
||||
light_bake_mode = 1
|
||||
shadow_enabled = true
|
||||
shadow_opacity = 0.47
|
||||
shadow_caster_mask = 4294967294
|
||||
distance_fade_begin = 100.0
|
||||
distance_fade_length = 100.0
|
||||
omni_range = 207.338
|
||||
|
||||
[node name="SpotLight3D" type="SpotLight3D" parent="Lights"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, -6.48285, 10.36, -0.0214838)
|
||||
@@ -7162,5 +7183,5 @@ monitoring = false
|
||||
monitorable = false
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="OutsideArea"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.920048, -0.14129, -11.8054)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.920048, -0.14129, -15.764)
|
||||
shape = SubResource("BoxShape3D_0f351")
|
||||
|
||||
@@ -13,6 +13,8 @@ public partial class BreakableWallRoom : Node3D
|
||||
|
||||
[Node] public ExplodableWall ExplodableWall { get; set; }
|
||||
|
||||
[Node] public OmniLight3D OmniLight3D { get; set; }
|
||||
|
||||
|
||||
public void OnReady()
|
||||
{
|
||||
@@ -31,6 +33,7 @@ public partial class BreakableWallRoom : Node3D
|
||||
{
|
||||
if (!ExplodableWall.IsExploded)
|
||||
return;
|
||||
OmniLight3D.Visible = true;
|
||||
WorldEnvironment.Environment = GD.Load<Environment>($"res://src/map/dungeon/rooms/Special Rooms/OutsideEnvironment.tres");
|
||||
WorldEnvironment.CameraAttributes = GD.Load<CameraAttributesPractical>($"res://src/map/dungeon/rooms/Special Rooms/OutsideEnvironmentCameraAtt.tres");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user