Indented plane mesh procgen

This commit is contained in:
Vojta committed 2025-02-24 21:38:11 +01:00
1 parent 2e8c1a5562
commit 1a908d4eff
2 files changed
+69 -20

No files matched your search

+14 -10
View File
@@ -1,19 +1,24 @@
[gd_scene load_steps=7 format=4 uid="uid://c0ieh1abu1xne"]
[gd_scene load_steps=9 format=4 uid="uid://c0ieh1abu1xne"]
[ext_resource type="Texture2D" uid="uid://c8nq55glypfp8" path="res://addons/kenney_prototype_tools/textures/light/texture_07.png" id="1_dn1le"]
[ext_resource type="Script" uid="uid://d2bvvjsibau8c" path="res://addons/simple-portal-system/scripts/portal.gd" id="1_ksg6r"]
[ext_resource type="PackedScene" uid="uid://d1dtxvwk86ple" path="res://procedural_mesh_maker.tscn" id="2_4vena"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_dn1le"]
albedo_texture = ExtResource("1_dn1le")
[sub_resource type="ArrayMesh" id="ArrayMesh_4vena"]
_surfaces = [{
"aabb": AABB(-0.75, 0, 0, 1.5, 2.25, 1e-05),
"attribute_data": PackedByteArray("AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AACAPwAAgD8="),
"aabb": AABB(-1, -1.3, -0.1, 2, 2.6, 0.1),
"attribute_data": PackedByteArray("AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AACAPwAAgD/NzMw9zczMPWZmZj/NzMw9zczMPWZmZj9mZmY/ZmZmPw=="),
"format": 34359742487,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAQADAAIA"),
"index_count": 30,
"index_data": PackedByteArray("AAABAAQABAABAAUAAQADAAUABQADAAcAAwACAAcABwACAAYAAgAAAAYABgAAAAQABAAFAAYABgAFAAcA"),
"material": SubResource("StandardMaterial3D_dn1le"),
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("AABAvwAAEEAAAAAAAABAPwAAEEAAAAAAAABAvwAAAAAAAAAAAABAPwAAAAAAAAAA/3//f/9/AID/f/9//38AgP9//3//fwCA/3//f/9/AIA=")
"vertex_count": 8,
"vertex_data": PackedByteArray("AACAv2Zmpj8AAAAAAACAP2Zmpj8AAAAAAACAv2Zmpr8AAAAAAACAP2Zmpr8AAAAAZmZmv5mZmT/NzMy9ZmZmP5mZmT/NzMy9ZmZmv5mZmb/NzMy9ZmZmP5mZmb/NzMy9/3//f/9/AID/f/9//38AgP9//3//fwCA/3//f/9/AID/f/9//38AgP9//3//fwCA/3//f/9/AID/f/9//38AgA==")
}]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_82kw5"]
@@ -57,9 +62,8 @@ mesh = SubResource("ArrayMesh_4vena")
script = ExtResource("1_ksg6r")
[node name="ProceduralMeshMaker" parent="." node_paths=PackedStringArray("portal") instance=ExtResource("2_4vena")]
height = 2.25
width = 1.5
indent = null
height = 2.6
width = 2.0
portal = NodePath("../MeshInstance3D")
[node name="OmniLight3D" type="OmniLight3D" parent="."]