Fix UV coordinates
This commit is contained in:
1 parent
1a908d4eff
commit
f39c7e70c7
8 files changed
+74
-19
No files matched your search
@@ -1,24 +1,22 @@
|
||||
[gd_scene load_steps=9 format=4 uid="uid://c0ieh1abu1xne"]
|
||||
[gd_scene load_steps=8 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="Material" uid="uid://bv36triwinl2f" path="res://textures/uv-checker-material.tres" 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"]
|
||||
[sub_resource type="ArrayMesh" id="ArrayMesh_1w8eh"]
|
||||
_surfaces = [{
|
||||
"aabb": AABB(-1, -1.3, -0.1, 2, 2.6, 0.1),
|
||||
"attribute_data": PackedByteArray("AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AACAPwAAgD/NzMw9zczMPWZmZj/NzMw9zczMPWZmZj9mZmY/ZmZmPw=="),
|
||||
"aabb": AABB(-1, -1.3, -0.133, 2, 2.6, 0.133),
|
||||
"attribute_data": PackedByteArray("AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AACAPwAAgD8nMYg9soZRPdv5bj+yhlE9JzGIPZXncj/b+W4/ledyPw=="),
|
||||
"format": 34359742487,
|
||||
"index_count": 30,
|
||||
"index_data": PackedByteArray("AAABAAQABAABAAUAAQADAAUABQADAAcAAwACAAcABwACAAYAAgAAAAYABgAAAAQABAAFAAYABgAFAAcA"),
|
||||
"material": SubResource("StandardMaterial3D_dn1le"),
|
||||
"material": ExtResource("1_dn1le"),
|
||||
"name": "Portal Material",
|
||||
"primitive": 3,
|
||||
"uv_scale": Vector4(0, 0, 0, 0),
|
||||
"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==")
|
||||
"vertex_data": PackedByteArray("AACAv2Zmpj8AAAAAAACAP2Zmpj8AAAAAAACAv2Zmpr8AAAAAAACAP2Zmpr8AAAAAtvNdv0FglT8nMQi+tvNdP0FglT8nMQi+tvNdv0Fglb8nMQi+tvNdP0Fglb8nMQi+/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"]
|
||||
@@ -58,18 +56,18 @@ shadow_mesh = SubResource("ArrayMesh_dn1le")
|
||||
[node name="ProceduralPortal" type="Node3D"]
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("ArrayMesh_4vena")
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.4625e-05, -0.0007523, 0.000824571)
|
||||
mesh = SubResource("ArrayMesh_1w8eh")
|
||||
script = ExtResource("1_ksg6r")
|
||||
|
||||
[node name="ProceduralMeshMaker" parent="." node_paths=PackedStringArray("portal") instance=ExtResource("2_4vena")]
|
||||
height = 2.6
|
||||
width = 2.0
|
||||
indent = 0.133
|
||||
portal = NodePath("../MeshInstance3D")
|
||||
|
||||
[node name="OmniLight3D" type="OmniLight3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.52963, 0, 1.51112)
|
||||
light_color = Color(5.0056e-06, 0.824088, 0.326623, 1)
|
||||
light_energy = 2.0
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="OfficialPortal" type="MeshInstance3D" parent="."]
|
||||
|
||||
Reference in new issue
Block a user