-
Notifications
You must be signed in to change notification settings - Fork 3
/
Main.tscn
165 lines (144 loc) · 4.12 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
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
[gd_scene load_steps=7 format=2]
[ext_resource path="res://scripts/UIController.gd" type="Script" id=1]
[ext_resource path="res://scripts/Terrain.gd" type="Script" id=2]
[ext_resource path="res://materials/grass.material" type="Material" id=3]
[ext_resource path="res://materials/desert_mountain.material" type="Material" id=4]
[ext_resource path="res://scripts/TerrainChunk.gd" type="Script" id=5]
[ext_resource path="res://scripts/FreeformCamera.gd" type="Script" id=6]
[node name="World" type="Spatial"]
script = ExtResource( 1 )
_sections_unfolded = [ "Transform" ]
[node name="StaticBody" type="StaticBody" parent="."]
visible = false
input_ray_pickable = true
input_capture_on_drag = false
collision_layer = 1
collision_mask = 1
friction = 1.0
bounce = 0.0
constant_linear_velocity = Vector3( 0, 0, 0 )
constant_angular_velocity = Vector3( 0, 0, 0 )
script = ExtResource( 2 )
_sections_unfolded = [ "Collision", "Transform" ]
terrain_resolution = 0.5
num_chunks = Vector2( 2, 2 )
chunk_size = Vector2( 64, 64 )
height_range = Vector2( 0, 150 )
terrain_roughness = 1.0
smooth_normals = true
smoothing_passes = 0
generate_collision_body = false
load_from_image = true
resize_chunks = false
image_path = "res://heightmaps/grand_canyon.png"
uv_scale = 1.0
material = ExtResource( 3 )
material2 = ExtResource( 4 )
[node name="MeshInstance" type="MeshInstance" parent="."]
layers = 1
material_override = null
cast_shadow = 1
extra_cull_margin = 0.0
visible_in_all_rooms = false
use_in_baked_light = false
lod_min_distance = 0.0
lod_min_hysteresis = 0.0
lod_max_distance = 0.0
lod_max_hysteresis = 0.0
mesh = null
skeleton = NodePath("..")
script = ExtResource( 5 )
generate_collision_mesh = true
algorithm = "Midpoint"
material = ExtResource( 3 )
terrain_resolution = 0.5
uv_scale = 2.0
mapsize = Vector2( 257, 257 )
height_range = Vector2( 0, 30 )
terrain_roughness = 5.0
smooth_normals = true
smoothing_passes = 2
save_image = false
output_dir = null
load_from_image = false
image_path = null
[node name="DirectionalLight" type="DirectionalLight" parent="."]
transform = Transform( 1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, -0.216396, 51.2618, 27.525 )
layers = 1
light_color = Color( 1, 1, 0.804688, 1 )
light_energy = 5.0
light_negative = false
light_specular = 0.5
light_cull_mask = -1
shadow_enabled = false
shadow_color = Color( 0, 0, 0, 1 )
shadow_bias = 1.0
shadow_contact = 0.0
shadow_max_distance = 400.0
editor_only = false
directional_shadow_mode = 2
directional_shadow_split_1 = 0.1
directional_shadow_split_2 = 0.2
directional_shadow_split_3 = 0.5
directional_shadow_blend_splits = false
directional_shadow_normal_bias = 0.2
_sections_unfolded = [ "Light", "Shadow", "Transform" ]
[node name="freeform" type="Camera" parent="."]
transform = Transform( -1, 8.74228e-08, 0, 6.18172e-08, 0.707107, 0.707107, 6.18172e-08, 0.707107, -0.707107, 0, 7.75786, 0 )
projection = 0
fov = 65.0
near = 0.1
far = 500.0
keep_aspect = 1
current = true
cull_mask = 1048575
environment = null
h_offset = 0.0
v_offset = 0.0
doppler/tracking = 0
script = ExtResource( 6 )
_sections_unfolded = [ "Transform" ]
speed = 0.5
mouse_sensitivity = 0.01
[node name="hud" type="CanvasLayer" parent="."]
layer = 1
offset = Vector2( 0, 0 )
rotation = 0.0
scale = Vector2( 1, 1 )
[node name="dbg" type="VBoxContainer" parent="hud"]
margin_left = 10.0
margin_top = 10.0
margin_right = 220.0
margin_bottom = 134.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 1
size_flags_horizontal = 1
size_flags_vertical = 1
alignment = 0
_sections_unfolded = [ "Margin" ]
[node name="fps" type="Label" parent="hud/dbg"]
margin_right = 210.0
margin_bottom = 14.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 2
size_flags_horizontal = 1
size_flags_vertical = 4
text = "<fps>"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
[node name="pos" type="Label" parent="hud/dbg"]
margin_top = 18.0
margin_right = 210.0
margin_bottom = 32.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 2
size_flags_horizontal = 1
size_flags_vertical = 4
text = "<position>"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1