-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tscn
95 lines (73 loc) · 3.19 KB
/
main.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
[gd_scene load_steps=4 format=3 uid="uid://dri1mc566mjyy"]
[ext_resource type="Script" uid="uid://bhvda4s2atq2y" path="res://main.gd" id="1"]
[ext_resource type="Texture2D" uid="uid://ccxxyw41f5407" path="res://texture_04.png" id="2_0xm2m"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ig7tw"]
albedo_texture = ExtResource("2_0xm2m")
uv1_triplanar = true
[node name="Main" type="Node3D"]
script = ExtResource("1")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.707107, -0.498127, 0.500277, 0, 0.704458, 0.707499, -0.707107, -0.498127, 0.500277, 2, 2, 2)
[node name="Terrain" type="CSGPolygon3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.0268748, 0.999639, 0, -0.999639, 0.0268748, 0, -0.5, 0)
polygon = PackedVector2Array(-40, -40, 40, -40, 40, 40, -40, 40)
material = SubResource("StandardMaterial3D_ig7tw")
[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 10, 20)
[node name="Control" type="Control" parent="."]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="HBoxContainer" type="HBoxContainer" parent="Control"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 5.0
offset_top = 5.0
offset_right = -5.0
offset_bottom = -5.0
grow_horizontal = 2
grow_vertical = 2
[node name="VBoxContainer" type="VBoxContainer" parent="Control/HBoxContainer"]
layout_mode = 2
[node name="ButtonsHBox" type="HBoxContainer" parent="Control/HBoxContainer/VBoxContainer"]
layout_mode = 2
[node name="BoxButton" type="Button" parent="Control/HBoxContainer/VBoxContainer/ButtonsHBox"]
layout_mode = 2
text = "Box"
[node name="CylinderButton" type="Button" parent="Control/HBoxContainer/VBoxContainer/ButtonsHBox"]
layout_mode = 2
text = "Cylinder"
[node name="SphereButton" type="Button" parent="Control/HBoxContainer/VBoxContainer/ButtonsHBox"]
layout_mode = 2
text = "Sphere"
[node name="TorusButton" type="Button" parent="Control/HBoxContainer/VBoxContainer/ButtonsHBox"]
layout_mode = 2
text = "Torus"
[node name="PolygonButton" type="Button" parent="Control/HBoxContainer/VBoxContainer/ButtonsHBox"]
layout_mode = 2
text = "Polygon"
[node name="MeshButton" type="Button" parent="Control/HBoxContainer/VBoxContainer/ButtonsHBox"]
layout_mode = 2
text = "Mesh"
[node name="RemoveButton" type="Button" parent="Control/HBoxContainer/VBoxContainer/ButtonsHBox"]
layout_mode = 2
text = "Remove"
[node name="ToggleUIVisibility" type="CheckButton" parent="Control/HBoxContainer/VBoxContainer/ButtonsHBox"]
layout_mode = 2
text = "Toggle UI"
[node name="InputFieldsHBox" type="HBoxContainer" parent="Control/HBoxContainer/VBoxContainer"]
layout_mode = 2
[node name="PositionEdit" type="LineEdit" parent="Control/HBoxContainer/VBoxContainer/InputFieldsHBox"]
layout_mode = 2
placeholder_text = "Position"
[node name="RotationEdit" type="LineEdit" parent="Control/HBoxContainer/VBoxContainer/InputFieldsHBox"]
layout_mode = 2
placeholder_text = "Rotation"
[node name="ScaleEdit" type="LineEdit" parent="Control/HBoxContainer/VBoxContainer/InputFieldsHBox"]
layout_mode = 2
placeholder_text = "Scale"