From ffc92ed12c6e680776d355ff9fcef70e5e28d7c8 Mon Sep 17 00:00:00 2001 From: dusoleil Date: Sun, 18 Sep 2022 08:32:29 -0400 Subject: Prototype levels of detail per chunk --- Rock.tscn | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'Rock.tscn') diff --git a/Rock.tscn b/Rock.tscn index 0a80df3..f3c7316 100644 --- a/Rock.tscn +++ b/Rock.tscn @@ -1,5 +1,6 @@ -[gd_scene load_steps=8 format=2] +[gd_scene load_steps=10 format=2] +[ext_resource path="res://Rock.gd" type="Script" id=1] [ext_resource path="res://ChunkedMeshInstance.gd" type="Script" id=2] [sub_resource type="ConvexPolygonShape" id=2] @@ -28,14 +29,25 @@ normal_texture = SubResource( 5 ) [sub_resource type="PrismMesh" id=1] size = Vector3( 5, 10, 5 ) +[sub_resource type="CubeMesh" id=9] +size = Vector3( 5, 10, 5 ) + [node name="Rock" type="StaticBody"] collision_layer = 8 collision_mask = 0 +script = ExtResource( 1 ) [node name="CollisionShape" type="CollisionShape" parent="."] shape = SubResource( 2 ) [node name="MeshInstance" type="MeshInstance" parent="."] +visible = false material_override = SubResource( 6 ) script = ExtResource( 2 ) _mesh = SubResource( 1 ) + +[node name="MeshInstance2" type="MeshInstance" parent="."] +visible = false +material_override = SubResource( 6 ) +script = ExtResource( 2 ) +_mesh = SubResource( 9 ) -- cgit v1.2.3