diff options
author | dusoleil <howcansocksbereal@gmail.com> | 2022-09-18 08:32:29 -0400 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2022-09-18 08:32:29 -0400 |
commit | ffc92ed12c6e680776d355ff9fcef70e5e28d7c8 (patch) | |
tree | 11060de6eee066442dcbca1babcf0f69dac525b2 /Rock.tscn | |
parent | 3dfcc3706f5dcb4b8150e027a02d0eb84c929b26 (diff) | |
download | game_jam49-ffc92ed12c6e680776d355ff9fcef70e5e28d7c8.tar.gz game_jam49-ffc92ed12c6e680776d355ff9fcef70e5e28d7c8.zip |
Prototype levels of detail per chunk
Diffstat (limited to '')
-rw-r--r-- | Rock.tscn | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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 ) |