-
Notifications
You must be signed in to change notification settings - Fork 2
/
test.tscn
186 lines (150 loc) · 6.05 KB
/
test.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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
[gd_scene load_steps=11 format=3 uid="uid://don2p0br1xnyt"]
[ext_resource type="Script" path="res://addons/interpolated_camera_3d/interpolated_camera_3d.gd" id="1"]
[ext_resource type="Script" path="res://player.gd" id="2"]
[ext_resource type="Script" path="res://tweaks.gd" id="3"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_3wce2"]
sky_top_color = Color(0.568627, 0.698039, 0.807843, 1)
sky_horizon_color = Color(0.672549, 0.704902, 0.734314, 1)
ground_bottom_color = Color(0.121569, 0.121569, 0.129412, 1)
ground_horizon_color = Color(0.672549, 0.704902, 0.734314, 1)
[sub_resource type="Sky" id="Sky_oyibt"]
sky_material = SubResource("ProceduralSkyMaterial_3wce2")
[sub_resource type="Environment" id="Environment_sr4qq"]
background_mode = 2
sky = SubResource("Sky_oyibt")
tonemap_mode = 3
tonemap_white = 6.0
fog_enabled = true
fog_light_color = Color(0.521569, 0.556863, 0.615686, 1)
fog_density = 0.003
fog_sky_affect = 0.0
[sub_resource type="SphereShape3D" id="1"]
[sub_resource type="StandardMaterial3D" id="2"]
albedo_color = Color(0.0980392, 0.6, 1, 1)
[sub_resource type="SphereMesh" id="3"]
material = SubResource("2")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_1vktr"]
albedo_color = Color(0.309804, 0.619608, 0.454902, 1)
[node name="Node3D" type="Node3D"]
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_sr4qq")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(-0.963868, 0.213989, -0.158645, 0, 0.595553, 0.803316, 0.266382, 0.77429, -0.574034, -4.02399, 20.3759, -14.5603)
shadow_enabled = true
shadow_bias = 0.04
shadow_blur = 1.5
directional_shadow_mode = 0
directional_shadow_fade_start = 1.0
directional_shadow_max_distance = 20.0
[node name="InterpolatedCamera3D" type="Camera3D" parent="." node_paths=PackedStringArray("target")]
current = true
far = 128.0
script = ExtResource("1")
target = NodePath("../CharacterBody3D/Pivot/TargetCamera")
[node name="CharacterBody3D" type="CharacterBody3D" parent="."]
script = ExtResource("2")
[node name="CollisionShape3D" type="CollisionShape3D" parent="CharacterBody3D"]
shape = SubResource("1")
[node name="MeshInstance3D" type="MeshInstance3D" parent="CharacterBody3D"]
mesh = SubResource("3")
[node name="Pivot" type="Node3D" parent="CharacterBody3D"]
[node name="TargetCamera" type="Camera3D" parent="CharacterBody3D/Pivot"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6)
far = 128.0
[node name="CSGBox3D" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -10, 0)
use_collision = true
size = Vector3(2100, 16, 2000)
[node name="CSGSphere3D" type="CSGSphere3D" parent="CSGBox3D"]
transform = Transform3D(1, 0, 0, 0, 0.5, 0, 0, 0, 1, 0, 9, -0.635887)
operation = 2
radius = 7.0
radial_segments = 64
rings = 32
material = SubResource("StandardMaterial3D_1vktr")
[node name="Tweaks" type="VBoxContainer" parent="."]
offset_left = 16.0
offset_top = 16.0
offset_right = 252.0
offset_bottom = 178.0
theme_override_constants/separation = 8
script = ExtResource("3")
[node name="TranslateSpeed" type="HBoxContainer" parent="Tweaks"]
layout_mode = 2
theme_override_constants/separation = 8
[node name="Label" type="Label" parent="Tweaks/TranslateSpeed"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
theme_override_constants/outline_size = 4
text = "Translate Speed"
[node name="HSlider" type="HSlider" parent="Tweaks/TranslateSpeed"]
layout_mode = 2
size_flags_horizontal = 3
max_value = 1.0
step = 0.001
[node name="RotateSpeed" type="HBoxContainer" parent="Tweaks"]
layout_mode = 2
theme_override_constants/separation = 8
[node name="Label" type="Label" parent="Tweaks/RotateSpeed"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
theme_override_constants/outline_size = 4
text = "Rotate Speed"
[node name="HSlider" type="HSlider" parent="Tweaks/RotateSpeed"]
layout_mode = 2
size_flags_horizontal = 3
max_value = 1.0
step = 0.001
[node name="FOV" type="HBoxContainer" parent="Tweaks"]
layout_mode = 2
theme_override_constants/separation = 8
[node name="Label" type="Label" parent="Tweaks/FOV"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
theme_override_constants/outline_size = 4
text = "FOV"
[node name="HSlider" type="HSlider" parent="Tweaks/FOV"]
layout_mode = 2
size_flags_horizontal = 3
min_value = 50.0
step = 0.1
value = 75.0
[node name="ViewDistance" type="HBoxContainer" parent="Tweaks"]
layout_mode = 2
theme_override_constants/separation = 8
[node name="Label" type="Label" parent="Tweaks/ViewDistance"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
theme_override_constants/outline_size = 4
text = "View Distance"
[node name="HSlider" type="HSlider" parent="Tweaks/ViewDistance"]
layout_mode = 2
size_flags_horizontal = 3
min_value = 20.0
max_value = 200.0
step = 0.1
value = 128.0
[node name="FPSLimit" type="HBoxContainer" parent="Tweaks"]
layout_mode = 2
theme_override_constants/separation = 8
[node name="Label" type="Label" parent="Tweaks/FPSLimit"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
theme_override_constants/outline_size = 4
text = "FPS Limit"
[node name="HSlider" type="HSlider" parent="Tweaks/FPSLimit"]
layout_mode = 2
size_flags_horizontal = 3
min_value = 20.0
max_value = 144.0
value = 144.0
[connection signal="value_changed" from="Tweaks/TranslateSpeed/HSlider" to="Tweaks" method="_on_translate_speed_value_changed"]
[connection signal="value_changed" from="Tweaks/RotateSpeed/HSlider" to="Tweaks" method="_on_rotate_speed_value_changed"]
[connection signal="value_changed" from="Tweaks/FOV/HSlider" to="Tweaks" method="_on_fov_value_changed"]
[connection signal="value_changed" from="Tweaks/ViewDistance/HSlider" to="Tweaks" method="_on_view_distance_value_changed"]
[connection signal="value_changed" from="Tweaks/FPSLimit/HSlider" to="Tweaks" method="_on_max_fps_value_changed"]