new shelf model

This commit is contained in:
Nikolai Fesenko
2025-08-16 01:30:20 +02:00
parent f323ae8d3d
commit 29e78166eb
20 changed files with 10665 additions and 2 deletions

28
Scenes/Prefabs/Shelf.tscn Normal file
View File

@@ -0,0 +1,28 @@
[gd_scene load_steps=8 format=3 uid="uid://c0gypplbklc3i"]
[ext_resource type="ArrayMesh" uid="uid://k2k1ppv3ycsv" path="res://Blends/Shelf/Shelf.obj" id="1_usf1u"]
[ext_resource type="Script" uid="uid://c61rr6to3q566" path="res://Scripts/build_object.gd" id="1_ya6sq"]
[ext_resource type="Shader" uid="uid://bfv6ckihralab" path="res://Shaders/build_transparent.gdshader" id="2_jbe2f"]
[ext_resource type="Texture2D" uid="uid://5gmmgg4cmefr" path="res://Blends/Shelf/color.png" id="2_x70sl"]
[ext_resource type="Texture2D" uid="uid://q0duenho1u2x" path="res://Blends/Shelf/normal.png" id="3_ya6sq"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_4318v"]
render_priority = 0
shader = ExtResource("2_jbe2f")
shader_parameter/color = Vector3(0, 0, 0)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_jbe2f"]
albedo_texture = ExtResource("2_x70sl")
normal_enabled = true
normal_scale = -1.88
normal_texture = ExtResource("3_ya6sq")
[node name="Shelf" type="Node3D" node_paths=PackedStringArray("meshInstance")]
script = ExtResource("1_ya6sq")
meshInstance = NodePath("Shelf")
preview_shader = SubResource("ShaderMaterial_4318v")
[node name="Shelf" type="MeshInstance3D" parent="."]
transform = Transform3D(-2.18557e-08, 0, -0.5, 0, 0.5, 0, 0.5, 0, -2.18557e-08, 0, -1.53245, 0)
mesh = ExtResource("1_usf1u")
surface_material_override/0 = SubResource("StandardMaterial3D_jbe2f")

View File

@@ -76,6 +76,14 @@ text = "Battery"
script = ExtResource("1_yp16r")
id = 2
[node name="ButtonCreatePot3" type="Button" parent="Panel2/HBoxContainer"]
custom_minimum_size = Vector2(100, 0)
layout_mode = 2
text = "Shelf"
script = ExtResource("1_yp16r")
id = 3
[connection signal="pressed" from="Panel2/HBoxContainer/ButtonCreateBed" to="Panel2/HBoxContainer/ButtonCreateBed" method="_on_pressed"]
[connection signal="pressed" from="Panel2/HBoxContainer/ButtonCreatePot" to="Panel2/HBoxContainer/ButtonCreatePot" method="_on_pressed"]
[connection signal="pressed" from="Panel2/HBoxContainer/ButtonCreatePot2" to="Panel2/HBoxContainer/ButtonCreatePot2" method="_on_pressed"]
[connection signal="pressed" from="Panel2/HBoxContainer/ButtonCreatePot3" to="Panel2/HBoxContainer/ButtonCreatePot3" method="_on_pressed"]