new shelf model
This commit is contained in:
28
Scenes/Prefabs/Shelf.tscn
Normal file
28
Scenes/Prefabs/Shelf.tscn
Normal 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")
|
||||
@@ -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"]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=16 format=3 uid="uid://bj7y7q2qkpnci"]
|
||||
[gd_scene load_steps=20 format=3 uid="uid://bj7y7q2qkpnci"]
|
||||
|
||||
[ext_resource type="Shader" uid="uid://c5e2qqpg6h4lw" path="res://Shaders/road.gdshader" id="2_6bp64"]
|
||||
[ext_resource type="ArrayMesh" uid="uid://622ethh2pdfa" path="res://Blends/road/road.obj" id="4_jjvhh"]
|
||||
@@ -7,6 +7,9 @@
|
||||
[ext_resource type="PackedScene" uid="uid://dim2geqhn6d35" path="res://Scenes/Prefabs/cart.tscn" id="6_21xkr"]
|
||||
[ext_resource type="PackedScene" uid="uid://dy03tqug33fep" path="res://Blends/ground.blend" id="6_344ge"]
|
||||
[ext_resource type="Script" uid="uid://drrp1k2q71hq2" path="res://Scripts/camera_3d.gd" id="7_6bp64"]
|
||||
[ext_resource type="ArrayMesh" uid="uid://k2k1ppv3ycsv" path="res://Blends/Shelf/Shelf.obj" id="8_344ge"]
|
||||
[ext_resource type="Texture2D" uid="uid://5gmmgg4cmefr" path="res://Blends/Shelf/color.png" id="9_hptm8"]
|
||||
[ext_resource type="Texture2D" uid="uid://q0duenho1u2x" path="res://Blends/Shelf/normal.png" id="10_d1ilt"]
|
||||
|
||||
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_jjvhh"]
|
||||
sky_top_color = Color(0.654771, 0.60129, 0.578102, 1)
|
||||
@@ -47,6 +50,12 @@ size = Vector2(0.5, 0.5)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_21xkr"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_6iyac"]
|
||||
albedo_texture = ExtResource("9_hptm8")
|
||||
normal_enabled = true
|
||||
normal_scale = -1.88
|
||||
normal_texture = ExtResource("10_d1ilt")
|
||||
|
||||
[node name="Main" type="Node3D"]
|
||||
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||
@@ -138,3 +147,8 @@ mouse_filter = 2
|
||||
|
||||
[node name="Marker3D" type="Marker3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.90278, -57.5436)
|
||||
|
||||
[node name="Shelf" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8.99485, 0.659399, -45.3142)
|
||||
mesh = ExtResource("8_344ge")
|
||||
surface_material_override/0 = SubResource("StandardMaterial3D_6iyac")
|
||||
|
||||
Reference in New Issue
Block a user