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,40 +4,17 @@
[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.2658, 0.412789, 12.3051, 6.50635, -11.4009, 6.3491, -11.3615, 0.0982838 )
[sub_resource type="OccluderShapePolygon" id=3]
polygon_points = PoolVector2Array( 13.1622, 0.219081, 13.2971, 5.84779, -12.386, 5.88149, -12.3186, 0.151672 )
[sub_resource type="BoxShape" id=1]
extents = Vector3( 0.7, 1, 0.6 )
[node name="residental-house8" 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, -5, 1, -12.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, -6, 0, -13 )
[node name="residental-house8" parent="MergeGroup" instance=ExtResource( 1 )]
[node name="Occluder" type="Occluder" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 14.2314 )
shape = SubResource( 2 )
@@ -53,3 +30,35 @@ shape = SubResource( 3 )
[node name="Occluder4" type="Occluder" parent="."]
transform = Transform( -4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 12.8026, 0, 0.0163574 )
shape = SubResource( 3 )
[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, -5, 1, -12.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, -6, 0, -13 )
[node name="residental-house8" parent="LOD/0/MergeGroup" instance=ExtResource( 1 )]
[node name="1" type="Spatial" parent="LOD"]
visible = false