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

@@ -1,10 +1,19 @@
[gd_scene load_steps=3 format=2]
[gd_scene load_steps=6 format=2]
[ext_resource path="res://astream/terrain/details/townhall-exterior.gltf" type="PackedScene" id=1]
[sub_resource type="BoxShape" id=1]
extents = Vector3( 2.00628, 2.23013, 4.04841 )
[sub_resource type="OccluderShapePolygon" id=2]
polygon_points = PoolVector2Array( 36.7768, 0.278552, 37.1809, 13.6124, -37.8389, 14.1512, -38.5124, -0.394878 )
[sub_resource type="OccluderShapePolygon" id=3]
polygon_points = PoolVector2Array( 18.5946, 2.06114, 17.9662, 13.215, -39.6884, 14.7711, -39.2171, 0.632338 )
[sub_resource type="OccluderShapeSphere" id=4]
spheres = [ Plane( 0, 0, 0, 8 ), Plane( 0, 14, 0, 8 ) ]
[node name="townhall-exterior" type="Spatial"]
[node name="scene_town_hall" type="Spatial" parent="." groups=["actuator"]]
@@ -16,6 +25,30 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 9.30597 )
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.141865, 2.25391, 0.0472889 )
shape = SubResource( 1 )
[node name="MergeGroup" type="MergeGroup" parent="."]
[node name="LOD" type="LOD" parent="."]
[node name="townhall-exterior" parent="MergeGroup" instance=ExtResource( 1 )]
[node name="0" type="Spatial" parent="LOD"]
lod_range = 300.0
[node name="MergeGroup" type="MergeGroup" parent="LOD/0"]
[node name="townhall-exterior" parent="LOD/0/MergeGroup" instance=ExtResource( 1 )]
[node name="1" type="Spatial" parent="LOD"]
visible = false
[node name="Occluder" type="Occluder" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 7.81175 )
shape = SubResource( 2 )
[node name="Occluder2" type="Occluder" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -28.1493 )
shape = SubResource( 2 )
[node name="Occluder3" type="Occluder" parent="."]
transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, -10.1014 )
shape = SubResource( 3 )
[node name="Occluder4" type="Occluder" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 26.4111, -2.98485 )
shape = SubResource( 4 )