This repository has been archived by the owner on Jan 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Spatial.tscn
160 lines (137 loc) · 5.72 KB
/
Spatial.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
[gd_scene load_steps=18 format=2]
[ext_resource path="res://styles/button/Normal.tres" type="StyleBox" id=1]
[ext_resource path="res://styles/button/Hover.tres" type="StyleBox" id=2]
[ext_resource path="res://styles/button/Pressed.tres" type="StyleBox" id=3]
[ext_resource path="res://styles/button/Focus.tres" type="StyleBox" id=4]
[ext_resource path="res://styles/container/panel.tres" type="StyleBox" id=5]
[ext_resource path="res://styles/seperator/style.tres" type="StyleBox" id=6]
[ext_resource path="res://scripts/vs/handler/PanelContainer.vs" type="Script" id=7]
[ext_resource path="res://scripts/vs/handler/VBoxContainer.vs" type="Script" id=8]
[ext_resource path="res://styles/Empty.tres" type="StyleBox" id=9]
[ext_resource path="res://scripts/gd/handler/MeshInstance.gd" type="Script" id=10]
[ext_resource path="res://scripts/gd/handler/KinematicBody.gd" type="Script" id=12]
[sub_resource type="ProceduralSky" id=1]
sky_top_color = Color( 0.211765, 0.313726, 0.552941, 1 )
sky_horizon_color = Color( 0.545098, 0.686275, 0.811765, 1 )
sky_curve = 0.190331
sky_energy = 0.75
ground_bottom_color = Color( 0.545098, 0.686275, 0.811765, 1 )
ground_horizon_color = Color( 0.545098, 0.686275, 0.811765, 1 )
ground_curve = 0.04
ground_energy = 0.75
sun_color = Color( 0.980392, 0.807843, 0.384314, 1 )
sun_latitude = 23.5
sun_longitude = -135.0
sun_angle_max = 30.0
sun_energy = 30.0
[sub_resource type="Environment" id=2]
background_mode = 2
background_sky = SubResource( 1 )
ambient_light_color = Color( 0.5, 0.5, 0.5, 1 )
ambient_light_energy = 3.0
ambient_light_sky_contribution = 0.25
tonemap_mode = 2
tonemap_white = 16.0
adjustment_contrast = 2.41
adjustment_saturation = 3.0
[sub_resource type="BoxShape" id=3]
extents = Vector3( 0.4, 0.4, 0.4 )
[sub_resource type="SpatialMaterial" id=4]
albedo_color = Color( 0.0862745, 0.321569, 0.321569, 1 )
[sub_resource type="ArrayMesh" id=5]
[sub_resource type="StyleBoxFlat" id=6]
bg_color = Color( 1, 1, 1, 0 )
[node name="Spatial" type="Spatial"]
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource( 2 )
[node name="DirectionalLight" type="DirectionalLight" parent="WorldEnvironment"]
transform = Transform( -0.466664, -0.825691, 0.316953, -0.478677, 0.537138, 0.694515, -0.743702, 0.172387, -0.645903, -159.023, 103.927, 159 )
light_energy = 2.0
light_indirect_energy = 1.2
shadow_enabled = true
shadow_color = Color( 0.6, 0.6, 0.6, 1 )
shadow_contact = 1.0
directional_shadow_max_distance = 1000.0
[node name="KinematicBody" type="KinematicBody" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5, 0 )
script = ExtResource( 12 )
[node name="Camera" type="Camera" parent="KinematicBody"]
transform = Transform( 1, 0, 0, 0, 0.819152, 0.573577, 0, -0.573577, 0.819152, 0, 0, 0 )
doppler_tracking = 2
current = true
fov = 90.0
near = 0.01
far = 1000.0
[node name="CollisionShape" type="CollisionShape" parent="KinematicBody"]
shape = SubResource( 3 )
[node name="MeshInstance" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, -1.62921e-07, 1, 0, -1, -1.62921e-07, 0, 0, 0 )
material_override = SubResource( 4 )
mesh = SubResource( 5 )
script = ExtResource( 10 )
[node name="StaticBody" type="StaticBody" parent="MeshInstance"]
[node name="CollisionShape" type="CollisionShape" parent="MeshInstance/StaticBody"]
[node name="Control" type="Control" parent="."]
margin_right = 40.0
margin_bottom = 40.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="PanelContainer" type="PanelContainer" parent="Control"]
margin_left = 8.0
margin_top = 7.0
margin_right = 212.0
margin_bottom = 55.0
custom_styles/panel = ExtResource( 5 )
script = ExtResource( 7 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="Control/PanelContainer"]
margin_left = 3.0
margin_top = 3.0
margin_right = 201.0
margin_bottom = 45.0
[node name="Button" type="Button" parent="Control/PanelContainer/VBoxContainer"]
margin_right = 198.0
margin_bottom = 14.0
custom_styles/hover = SubResource( 6 )
custom_styles/pressed = ExtResource( 9 )
custom_styles/focus = ExtResource( 9 )
custom_styles/disabled = ExtResource( 9 )
custom_styles/normal = ExtResource( 9 )
custom_colors/font_color_disabled = Color( 1, 1, 1, 0.784314 )
custom_colors/font_color = Color( 1, 1, 1, 0.784314 )
custom_colors/font_color_hover = Color( 1, 1, 1, 0.784314 )
custom_colors/font_color_pressed = Color( 1, 1, 1, 0.784314 )
text = "Test menu"
[node name="VBoxContainer" type="VBoxContainer" parent="Control/PanelContainer/VBoxContainer"]
margin_top = 18.0
margin_right = 198.0
margin_bottom = 42.0
script = ExtResource( 8 )
[node name="HSeparator" type="HSeparator" parent="Control/PanelContainer/VBoxContainer/VBoxContainer"]
margin_right = 198.0
margin_bottom = 4.0
custom_styles/separator = ExtResource( 6 )
[node name="Button" type="Button" parent="Control/PanelContainer/VBoxContainer/VBoxContainer"]
margin_top = 8.0
margin_right = 198.0
margin_bottom = 24.0
rect_pivot_offset = Vector2( 120.362, 20 )
focus_mode = 0
custom_styles/hover = ExtResource( 2 )
custom_styles/pressed = ExtResource( 3 )
custom_styles/focus = ExtResource( 4 )
custom_styles/normal = ExtResource( 1 )
custom_colors/font_color_disabled = Color( 1, 1, 1, 0.784314 )
custom_colors/font_color = Color( 1, 1, 1, 0.784314 )
custom_colors/font_color_hover = Color( 1, 1, 1, 0.784314 )
custom_colors/font_color_pressed = Color( 1, 1, 1, 0.784314 )
enabled_focus_mode = 0
text = "Regen Terrain"
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="pressed" from="Control/PanelContainer/VBoxContainer/Button" to="Control/PanelContainer/VBoxContainer/VBoxContainer" method="_on_Button_pressed"]
[connection signal="pressed" from="Control/PanelContainer/VBoxContainer/VBoxContainer/Button" to="MeshInstance" method="_on_Button_pressed"]