Save on draw calls

This commit is contained in:
2025-03-17 19:40:50 +03:00
parent 8e140fb878
commit ea792d8ea9
101 changed files with 2141 additions and 13712 deletions

View File

@@ -4,37 +4,14 @@
[ext_resource path="res://astream/terrain/details/parts/door1-portal.tscn" type="PackedScene" id=2]
[ext_resource path="res://astream/terrain/details/parts/residental-house-stair.tscn" type="PackedScene" id=3]
[sub_resource type="BoxShape" id=1]
extents = Vector3( 0.7, 1, 0.6 )
[sub_resource type="OccluderShapePolygon" id=2]
polygon_points = PoolVector2Array( 12.0656, 0.334031, 12.1811, 6.20001, -12.3231, 6.43118, -12.1786, 0.10286 )
[sub_resource type="BoxShape" id=1]
extents = Vector3( 0.7, 1, 0.6 )
[node name="residental-house6" type="Spatial"]
[node name="door1-portal" parent="." instance=ExtResource( 2 )]
transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -9, 1, -11.5131 )
[node name="enter_destination" type="Spatial" parent="door1-portal" groups=["smart_object"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.905, 0, 0.65 )
[node name="actions" type="Node" parent="door1-portal/enter_destination"]
[node name="EnterDestination" type="Node" parent="door1-portal/enter_destination/actions"]
[node name="Area" type="Area" parent="door1-portal/enter_destination"]
[node name="CollisionShape" type="CollisionShape" parent="door1-portal/enter_destination/Area"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.1, 0 )
shape = SubResource( 1 )
[node name="MergeGroup" type="MergeGroup" parent="."]
[node name="residental-house-stair" parent="MergeGroup" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -10, 0, -12 )
[node name="residental-house6" parent="MergeGroup" instance=ExtResource( 1 )]
[node name="Occluder" type="Occluder" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 12.8853 )
shape = SubResource( 2 )
@@ -54,3 +31,35 @@ shape = SubResource( 2 )
[node name="Occluder5" type="Occluder" parent="."]
transform = Transform( -4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 13.7113, 0, 0.504406 )
shape = SubResource( 2 )
[node name="LOD" type="LOD" parent="."]
[node name="0" type="Spatial" parent="LOD"]
lod_range = 200.0
[node name="door1-portal" parent="LOD/0" instance=ExtResource( 2 )]
transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -9, 1, -11.5131 )
skeleton = NodePath("../../..")
[node name="enter_destination" type="Spatial" parent="LOD/0/door1-portal" groups=["smart_object"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.905, 0, 0.65 )
[node name="actions" type="Node" parent="LOD/0/door1-portal/enter_destination"]
[node name="EnterDestination" type="Node" parent="LOD/0/door1-portal/enter_destination/actions"]
[node name="Area" type="Area" parent="LOD/0/door1-portal/enter_destination"]
[node name="CollisionShape" type="CollisionShape" parent="LOD/0/door1-portal/enter_destination/Area"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.1, 0 )
shape = SubResource( 1 )
[node name="MergeGroup" type="MergeGroup" parent="LOD/0"]
[node name="residental-house-stair" parent="LOD/0/MergeGroup" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -10, 0, -12 )
[node name="residental-house6" parent="LOD/0/MergeGroup" instance=ExtResource( 1 )]
[node name="1" type="Spatial" parent="LOD"]
visible = false