-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathMain.tscn
278 lines (229 loc) · 31.2 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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
[gd_scene load_steps=34 format=2]
[ext_resource path="res://scripts/Water.gd" type="Script" id=1]
[ext_resource path="res://assets/meshes/island.obj" type="ArrayMesh" id=2]
[ext_resource path="res://scenes/Boat.tscn" type="PackedScene" id=3]
[ext_resource path="res://assets/materials/water.tres" type="Material" id=4]
[ext_resource path="res://assets/meshes/water.tres" type="ArrayMesh" id=5]
[ext_resource path="res://assets/meshes/palmtree.obj" type="ArrayMesh" id=6]
[ext_resource path="res://scripts/Camera.gd" type="Script" id=7]
[ext_resource path="res://scripts/GridPointsSlider.gd" type="Script" id=8]
[ext_resource path="res://scripts/Main.gd" type="Script" id=9]
[ext_resource path="res://assets/textures/reload.png" type="Texture" id=10]
[ext_resource path="res://scenes/Surfboard.tscn" type="PackedScene" id=11]
[ext_resource path="res://assets/textures/grabber.png" type="Texture" id=12]
[ext_resource path="res://assets/fonts/Roboto-Regular.ttf" type="DynamicFontData" id=13]
[ext_resource path="res://assets/shaders/simulation.shader" type="Shader" id=14]
[ext_resource path="res://assets/textures/land_texture.png" type="Texture" id=15]
[sub_resource type="Environment" id=1]
background_mode = 1
background_color = Color( 1, 0.921569, 0.501961, 1 )
ambient_light_color = Color( 1, 1, 1, 1 )
[sub_resource type="ShaderMaterial" id=2]
shader = ExtResource( 14 )
shader_param/a = 0.0336111
shader_param/amplitude = null
shader_param/grid_points = null
[sub_resource type="Environment" id=3]
background_mode = 1
ambient_light_color = Color( 1, 1, 1, 1 )
[sub_resource type="BoxShape" id=4]
extents = Vector3( 25, 5, 25 )
[sub_resource type="BoxShape" id=5]
extents = Vector3( 25, 25, 1 )
[sub_resource type="BoxShape" id=6]
extents = Vector3( 25, 25, 1 )
[sub_resource type="BoxShape" id=7]
extents = Vector3( 1, 25, 25 )
[sub_resource type="SpatialMaterial" id=8]
albedo_color = Color( 0.831373, 0.737255, 0.313726, 1 )
[sub_resource type="SpatialMaterial" id=9]
albedo_color = Color( 0.584314, 0.419608, 0.129412, 1 )
metallic_specular = 0.0
[sub_resource type="SpatialMaterial" id=10]
params_cull_mode = 2
albedo_color = Color( 0.72549, 1, 0.235294, 1 )
metallic_specular = 0.0
[sub_resource type="ConvexPolygonShape" id=11]
points = PoolVector3Array( 0.0081, -0.66036, -0.848095, 0.079964, -0.612849, -0.866765, 0.012357, -0.563735, -0.869435, -0.546714, -0.908274, -0.491713, -0.614315, -0.923515, -0.430121, -0.548236, -0.982205, -0.424929, 0.012357, -0.563735, -0.869435, 0.079964, -0.612849, -0.866765, 0.110316, -0.531628, -0.873968, 0.110316, -0.531628, -0.873968, 0.079964, -0.612849, -0.866765, 0.168029, -0.61162, -0.856729, 0.168029, -0.61162, -0.856729, 0.079964, -0.612849, -0.866765, 0.102133, -0.693275, -0.842416, -0.635313, -0.971697, -0.354973, -0.539929, -0.295851, -0.601194, -0.517006, -0.232722, -0.610312, -0.587974, -0.218494, -0.548065, 0.197931, 0.128273, -0.629735, 0.295339, 0.129721, -0.595811, 0.236081, 0.159533, -0.52709, 0.888172, -0.417174, -0.459349, 0.899814, -0.525126, -0.402577, 0.930809, -0.433105, -0.326719, 0.316494, -1.2542, -0.301674, 0.224482, -1.2933, -0.27767, 0.291711, -1.31731, -0.201988, -0.689925, -0.887126, -0.382991, -0.536157, -0.145974, -0.565727, 0.352632, 0.147458, -0.512083, 0.921013, -0.575606, -0.295902, 0.168353, -1.33641, -0.205094, -0.982641, -0.385183, 0.276711, -0.992105, -0.282296, 0.221975, -0.946937, -0.259278, 0.33032, -0.338339, 0.235287, 0.126928, -0.257762, 0.284957, 0.099869, -0.262093, 0.279908, 0.194421, 0.535873, 0.193147, 0.323943, 0.628003, 0.139164, 0.329194, 0.571109, 0.148533, 0.429826, 0.637665, -0.735861, 0.565697, 0.588166, -0.843815, 0.552807, 0.529125, -0.785857, 0.638979, -0.310173, -1.14598, 0.534684, -0.419569, -1.13672, 0.487601, -0.411335, -1.05921, 0.578125, -0.082631, -0.229682, 0.906508, -0.216908, -0.273654, 0.896666, -0.177087, -0.152584, 0.88601, -0.117951, -0.369893, 0.911982, -0.258158, -0.416603, 0.890756, -0.156564, -0.522385, 0.898917, -0.299962, -0.565149, 0.865558, -0.19661, -0.67527, 0.863179, -0.339088, -0.709255, 0.818744, -0.234491, -0.819982, 0.803385, -0.371768, -0.842976, 0.751276, -0.266815, -0.95022, 0.723123, -0.395845, -0.961114, 0.668439, -0.292023, -1.0596, 0.630579, 0.024194, -0.325456, 0.911008, -0.006936, -0.476209, 0.909163, 0.138461, -0.430595, 0.895415, -0.043003, -0.632477, 0.885942, 0.110574, -0.584058, 0.883447, 0.252968, -0.534341, 0.857629, -0.081771, -0.785042, 0.837476, 0.076018, -0.739079, 0.847706, 0.226551, -0.685749, 0.833264, 0.359936, -0.630052, 0.798672, -0.119739, -0.925908, 0.764743, 0.03705, -0.886976, 0.78645, 0.191667, -0.835395, 0.784893, 0.332715, -0.775962, 0.761916, 0.453044, -0.714378, 0.723368, -0.153957, -1.04702, 0.67466, -0.003044, -1.0185, 0.704, 0.150645, -0.973835, 0.713944, 0.295691, -0.91633, 0.703755, 0.423221, -0.851708, 0.676859, 0.529125, -0.785857, 0.638979, -0.182783, -1.14387, 0.576947, -0.041186, -1.12654, 0.609319, 0.106938, -1.09199, 0.627189, 0.251507, -1.04146, 0.628259, 0.383145, -0.97938, 0.613566, 0.495937, -0.911681, 0.586845, -0.076421, -0.087636, 0.877407, -0.082631, -0.229682, 0.906508, -0.177087, -0.152584, 0.88601, 0.031003, -0.162925, 0.893367, 0.024194, -0.325456, 0.911008, 0.149696, -0.261744, 0.88923, 0.138461, -0.430595, 0.895415, 0.272134, -0.373239, 0.861177, 0.252968, -0.534341, 0.857629, 0.388598, -0.481705, 0.809618, 0.359936, -0.630052, 0.798672, 0.490871, -0.579527, 0.738359, 0.453044, -0.714378, 0.723368, 0.574138, -0.664464, 0.654345, 0.038341, -0.022753, 0.850425, 0.157494, -0.095434, 0.85827, 0.162244, 0.03906, 0.801151, 0.284666, -0.195741, 0.842383, 0.289683, -0.030372, 0.797654, 0.286135, 0.091214, 0.7289, 0.409484, -0.310724, 0.800675, 0.419638, -0.130901, 0.768446, 0.41645, 0.024391, 0.712292, 0.399887, 0.128987, 0.637918, 0.521042, -0.422437, 0.736578, 0.539745, -0.246197, 0.714618, 0.5429, -0.072253, 0.671275, 0.526272, 0.06072, 0.608839, 0.495795, 0.147911, 0.535383, 0.612503, -0.522181, 0.656693, 0.640193, -0.358947, 0.64222, 0.652688, -0.184207, 0.609536, 0.643421, -0.029891, 0.559922, 0.613295, 0.078795, 0.497637, 0.571109, 0.148533, 0.429826, 0.681923, -0.6083, 0.569056, 0.716957, -0.460316, 0.559343, 0.738485, -0.295984, 0.534691, 0.740528, -0.134068, 0.495716, 0.717917, -0.0053, 0.445354, 0.677345, 0.082692, 0.388294, -0.205732, -0.051345, 0.847428, -0.076421, -0.087636, 0.877407, -0.177087, -0.152584, 0.88601, -0.098621, 0.017097, 0.828048, 0.038341, -0.022753, 0.850425, 0.022635, 0.081068, 0.788554, 0.162244, 0.03906, 0.801151, 0.150206, 0.136203, 0.723955, 0.286135, 0.091214, 0.7289, 0.272635, 0.178595, 0.636254, 0.399887, 0.128987, 0.637918, 0.380344, 0.205693, 0.534932, 0.495795, 0.147911, 0.535383, 0.467708, 0.208792, 0.428081, -0.229658, 0.03432, 0.781146, -0.117673, 0.105246, 0.748176, -0.246883, 0.106937, 0.683085, 0.00449, 0.167873, 0.695958, -0.133839, 0.17714, 0.633806, -0.25882, 0.170519, 0.56472, 0.128721, 0.214045, 0.611093, -0.017609, 0.236855, 0.563173, -0.148978, 0.240355, 0.50338, -0.264987, 0.223517, 0.438226, 0.245632, 0.24796, 0.51266, 0.099532, 0.276371, 0.472516, -0.037935, 0.294127, 0.424614, -0.160318, 0.29078, 0.372115, -0.265553, 0.260975, 0.312654, 0.34532, 0.260652, 0.410332, 0.209927, 0.297184, 0.376611, 0.071557, 0.326224, 0.336106, -0.055547, 0.333439, 0.292027, -0.167026, 0.314032, 0.245083, -0.262093, 0.279908, 0.194421, 0.427398, 0.251854, 0.309059, 0.306215, 0.302036, 0.280955, 0.175768, 0.339973, 0.242271, 0.044887, 0.354621, 0.202011, -0.073902, 0.344132, 0.163518, -0.177504, 0.314487, 0.127976, -0.257762, 0.284957, 0.099869, -0.293556, -0.153999, 0.861638, -0.205732, -0.051345, 0.847428, -0.177087, -0.152584, 0.88601, -0.331282, -0.052613, 0.805704, -0.229658, 0.03432, 0.781146, -0.356941, 0.028645, 0.718777, -0.246883, 0.106937, 0.683085, -0.36941, 0.094041, 0.606988, -0.25882, 0.170519, 0.56472, -0.372638, 0.148167, 0.485419, -0.264987, 0.223517, 0.438226, -0.368381, 0.189401, 0.361803, -0.265553, 0.260975, 0.312654, -0.357513, 0.214919, 0.240154, -0.420223, -0.161551, 0.817231, -0.461638, -0.06125, 0.744434, -0.552344, -0.173925, 0.751942, -0.483942, 0.017217, 0.64392, -0.594422, -0.070785, 0.669847, -0.679565, -0.190884, 0.665836, -0.488809, 0.077098, 0.525182, -0.611128, 0.006738, 0.560488, -0.719309, -0.087172, 0.574616, -0.789632, -0.21318, 0.560415, -0.481381, 0.120885, 0.400617, -0.605484, 0.061061, 0.435003, -0.72628, -0.012525, 0.45589, -0.820512, -0.114972, 0.458496, -0.879331, -0.236452, 0.445309, -0.464384, 0.146216, 0.276068, -0.586027, 0.094026, 0.305499, -0.708987, 0.036848, 0.327121, -0.817052, -0.043106, 0.339057, -0.898835, -0.144747, 0.340297, -0.946937, -0.259278, 0.33032, -0.44164, 0.166126, 0.157814, -0.559677, 0.110075, 0.18544, -0.682843, 0.067098, 0.2053, -0.794126, 0.007088, 0.219211, -0.886364, -0.075459, 0.227418, -0.953665, -0.175492, 0.228582, -0.216908, -0.273654, 0.896666, -0.293556, -0.153999, 0.861638, -0.177087, -0.152584, 0.88601, -0.343796, -0.284168, 0.866153, -0.420223, -0.161551, 0.817231, -0.47918, -0.29934, 0.812805, -0.552344, -0.173925, 0.751942, -0.61447, -0.317448, 0.734491, -0.679565, -0.190884, 0.665836, -0.738823, -0.336765, 0.633562, -0.789632, -0.21318, 0.560415, -0.843787, -0.354926, 0.517179, -0.879331, -0.236452, 0.445309, -0.925099, -0.370994, 0.395087, -0.258158, -0.416603, 0.890756, -0.391909, -0.435965, 0.850563, -0.299962, -0.565149, 0.865558, -0.531135, -0.456462, 0.784942, -0.437046, -0.590087, 0.813115, -0.339088, -0.709255, 0.818744, -0.665242, -0.475509, 0.693506, -0.575235, -0.611587, 0.734423, -0.474724, -0.735805, 0.753161, -0.371768, -0.842976, 0.751276, -0.783348, -0.490884, 0.581451, -0.70302, -0.627424, 0.631769, -0.606506, -0.755346, 0.662976, -0.5011, -0.868127, 0.674141, -0.395845, -0.961114, 0.668439, -0.879238, -0.501, 0.457747, -0.811099, -0.636239, 0.512673, -0.723776, -0.765945, 0.55331, -0.622528, -0.882838, 0.576698, -0.515627, -0.981248, 0.583831, -0.411335, -1.05921, 0.578125, -0.950628, -0.506615, 0.333189, -0.896072, -0.636925, 0.38721, -0.820114, -0.766435, 0.433011, -0.727521, -0.886005, 0.465809, -0.625087, -0.988887, 0.484476, -0.52018, -1.07239, 0.490779, -0.356496, -1.2128, 0.420488, -0.233635, -1.22313, 0.462737, -0.280347, -1.28459, 0.336433, -0.144459, -1.29291, 0.371402, -0.192564, -1.34487, 0.236143, -0.046295, -1.34707, 0.262408, -0.097278, -1.38579, 0.123563, 0.054403, -1.37882, 0.141719, -0.000536, -1.39819, 0.005292, 0.149963, -1.38435, 0.018533, 0.090526, -1.3772, -0.107869, 0.232393, -1.36195, -0.096746, -0.09278, -1.21837, 0.4988, 0.007369, -1.28191, 0.399363, 0.059687, -1.1942, 0.523674, 0.111462, -1.32625, 0.282024, 0.165871, -1.24777, 0.416151, 0.213376, -1.14953, 0.533619, 0.211407, -1.34627, 0.154821, 0.269263, -1.28038, 0.292234, 0.318778, -1.1914, 0.419514, 0.35687, -1.08768, 0.527896, 0.299997, -1.34219, 0.028017, 0.361783, -1.28949, 0.161608, 0.414774, -1.21306, 0.292242, 0.455076, -1.11865, 0.410196, 0.481612, -1.01524, 0.509018, 0.371659, -1.31707, -0.090465, 0.438254, -1.27777, 0.034704, 0.495043, -1.21441, 0.162043, 0.539173, -1.1322, 0.283491, 0.568548, -1.03786, 0.391361, 0.583967, -0.939448, 0.481342, 0.671559, -0.830786, 0.468271, 0.725808, -0.712264, 0.472587, 0.753031, -0.809004, 0.363834, 0.808951, -0.679289, 0.357399, 0.825465, -0.776997, 0.240767, 0.878717, -0.636255, 0.222974, 0.881571, -0.734582, 0.104336, 0.927162, -0.58566, 0.077095, 0.916192, -0.684054, -0.036693, 0.950284, -0.532082, -0.069386, 0.928285, -0.629635, -0.17263, 0.949645, -0.48015, -0.206198, 0.771928, -0.571289, 0.46611, 0.853232, -0.524881, 0.339922, 0.804891, -0.408629, 0.446062, 0.915952, -0.472329, 0.195759, 0.879143, -0.352062, 0.310324, 0.818614, -0.235357, 0.412232, 0.95298, -0.418538, 0.043806, 0.929889, -0.297597, 0.160025, 0.878766, -0.182228, 0.270653, 0.80443, -0.08477, 0.36713, 0.962588, -0.369534, -0.103728, 0.951322, -0.253589, 0.007512, 0.911237, -0.144434, 0.120285, 0.845617, -0.051418, 0.22511, 0.764197, 0.024131, 0.315388, 0.949341, -0.328191, -0.237295, 0.94685, -0.219825, -0.135804, 0.917808, -0.118424, -0.027285, 0.863557, -0.030806, 0.079805, 0.791059, 0.040071, 0.177648, 0.710039, 0.095746, 0.261458, 0.620658, 0.156183, 0.2246, 0.517283, 0.211626, 0.206467, 0.599885, 0.167909, 0.104898, 0.483907, 0.229376, 0.073214, 0.564227, 0.178043, -0.028992, 0.440781, 0.235457, -0.062853, 0.518505, 0.179949, -0.165052, 0.393146, 0.228766, -0.195086, 0.466935, 0.173315, -0.295082, 0.341889, 0.209933, -0.318553, 0.410903, 0.160642, -0.411916, 0.28771, 0.184262, -0.427905, 0.399614, 0.275148, 0.17925, 0.358817, 0.288859, 0.039503, 0.271219, 0.328312, 0.142509, 0.314001, 0.286186, -0.095915, 0.229221, 0.329988, 0.005241, 0.139608, 0.352821, 0.105585, 0.266281, 0.263105, -0.222967, 0.186091, 0.312421, -0.125346, 0.101759, 0.346465, -0.026105, 0.015364, 0.351673, 0.07179, 0.216767, 0.226175, -0.337353, 0.141183, 0.268712, -0.243583, 0.062115, 0.309384, -0.148609, -0.018658, 0.330927, -0.051415, -0.098552, 0.327092, 0.043594, 0.168659, 0.18977, -0.445026, 0.095636, 0.221688, -0.354548, 0.019837, 0.254318, -0.260691, -0.057041, 0.28476, -0.165969, -0.132349, 0.295872, -0.069135, -0.201799, 0.291882, 0.023507, -0.299608, 0.246652, 0.021179, -0.402243, 0.188502, 0.037239, -0.351918, 0.202717, -0.077688, -0.465032, 0.145386, -0.066944, -0.407721, 0.151473, -0.184676, -0.527989, 0.100341, -0.175993, -0.462504, 0.096312, -0.287978, -0.583672, 0.046093, -0.284779, -0.508597, 0.033654, -0.391674, -0.61442, -0.025249, -0.392181, -0.537039, -0.042434, -0.486898, -0.617781, -0.119469, -0.48167, -0.516046, 0.1281, 0.062514, -0.59253, 0.094187, -0.048222, -0.646079, 0.082799, 0.084313, -0.661102, 0.050787, -0.161583, -0.726286, 0.046208, -0.029582, -0.768418, 0.033916, 0.099301, -0.698444, -0.009772, -0.276165, -0.778361, -0.004308, -0.145557, -0.834127, -0.014748, -0.015671, -0.870102, -0.03882, 0.110314, -0.706231, -0.098007, -0.384476, -0.797654, -0.082277, -0.266351, -0.875705, -0.082321, -0.13471, -0.923381, -0.102529, -0.006693, -0.948817, -0.134747, 0.116304, -0.67659, -0.20302, -0.46642, -0.775507, -0.187104, -0.3699, -0.876946, -0.174192, -0.255599, -0.9538, -0.179229, -0.125649, -0.99065, -0.205805, -0.000435, -1.00223, -0.241755, 0.117281, -1.02302, -0.369004, 0.144377, -1.00882, -0.485065, 0.194627, -1.03993, -0.466798, 0.052608, -1.01956, -0.592963, 0.097464, -1.03655, -0.569576, -0.050474, -1.00628, -0.703861, -0.010529, -0.994139, -0.671535, -0.157637, -0.950838, -0.809236, -0.119236, -0.899829, -0.762963, -0.249876, -0.842092, -0.886785, -0.208378, -0.789791, -0.834509, -0.322211, -0.730765, -0.93759, -0.283405, -0.968369, -0.617612, 0.248092, -0.966831, -0.733887, 0.147135, -0.901007, -0.75601, 0.299092, -0.934866, -0.848177, 0.036, -0.883253, -0.87588, 0.194452, -0.810771, -0.888337, 0.341224, -0.85342, -0.935096, -0.070247, -0.829981, -0.976189, 0.080219, -0.779249, -1.0023, 0.232816, -0.70614, -1.00333, 0.370463, -0.749205, -0.990829, -0.163089, -0.742689, -1.04027, -0.02703, -0.716085, -1.08327, 0.116667, -0.666795, -1.10638, 0.260601, -0.595421, -1.09633, 0.387068, -0.645715, -1.0255, -0.247902, -0.644356, -1.08102, -0.12531, -0.629124, -1.13327, 0.008027, -0.602166, -1.17785, 0.146327, -0.552539, -1.18753, 0.279231, -0.486286, -1.16732, 0.393354, 0.668604, -0.92911, 0.382768, 0.651, -1.02841, 0.277914, 0.615674, -1.12052, 0.156601, 0.562683, -1.19696, 0.025967, 0.495618, -1.25095, -0.10414, 0.412818, -1.26645, -0.217308, 0.748719, -0.907184, 0.263334, 0.725845, -1.00389, 0.144676, 0.816074, -0.871918, 0.126699, 0.681811, -1.09036, 0.013696, 0.784691, -0.962729, -0.001655, 0.863319, -0.823973, -0.018894, 0.618294, -1.15848, -0.119971, 0.730261, -1.04119, -0.135779, 0.821501, -0.906903, -0.15031, 0.887003, -0.766782, -0.162645, 0.534073, -1.19251, -0.240121, 0.651413, -1.09476, -0.261626, 0.755116, -0.975421, -0.278997, 0.834858, -0.841591, -0.289861, 0.888632, -0.705623, -0.294846, 0.427309, -1.19013, -0.33001, 0.542427, -1.10742, -0.358605, 0.65473, -1.00864, -0.384775, 0.755335, -0.896315, -0.404916, 0.828107, -0.771885, -0.412154, 0.873304, -0.645271, -0.409663, 0.703717, 0.112346, 0.143369, 0.784186, 0.057771, 0.047058, 0.85409, -0.011793, -0.061531, 0.901602, -0.100069, -0.175547, 0.921499, -0.202242, -0.284544, 0.914167, -0.312324, -0.38009, 0.679053, 0.120668, 0.007856, 0.757367, 0.068132, -0.097626, 0.639006, 0.125597, -0.133396, 0.822589, 0.000899, -0.213185, 0.712429, 0.07355, -0.24548, 0.588198, 0.126349, -0.271833, 0.861387, -0.087134, -0.328428, 0.768932, 0.006527, -0.363831, 0.652853, 0.075126, -0.387888, 0.529506, 0.123609, -0.401718, 0.872435, -0.188837, -0.431763, 0.799055, -0.080139, -0.474184, 0.698117, 0.006176, -0.502227, 0.581732, 0.070567, -0.515364, 0.463619, 0.11682, -0.516997, 0.858173, -0.298097, -0.516373, 0.803379, -0.180044, -0.566992, 0.720769, -0.079412, -0.602844, 0.617237, -0.001236, -0.620252, 0.505163, 0.057818, -0.621854, 0.395381, 0.10058, -0.612181, -0.299608, 0.246652, 0.021179, -0.242022, 0.253249, -0.078372, -0.173517, 0.24893, -0.177861, -0.09964, 0.227606, -0.274987, -0.024701, 0.20287, -0.370683, 0.050204, 0.179245, -0.463969, 0.124101, 0.154833, -0.551303, -0.351918, 0.202717, -0.077688, -0.2898, 0.202096, -0.182672, -0.407721, 0.151473, -0.184676, -0.219415, 0.18998, -0.283834, -0.341434, 0.145193, -0.287614, -0.462504, 0.096312, -0.287978, -0.146022, 0.172674, -0.383635, -0.269794, 0.132147, -0.390873, -0.394435, 0.084636, -0.393155, -0.508597, 0.033654, -0.391674, -0.071279, 0.156261, -0.481119, -0.196044, 0.120589, -0.494038, -0.324203, 0.071387, -0.499255, -0.440008, 0.012017, -0.496761, -0.537039, -0.042434, -0.486898, 0.005204, 0.140028, -0.574258, -0.120524, 0.113557, -0.593097, -0.253142, 0.063736, -0.601406, -0.371946, -0.01243, -0.59987, -0.463024, -0.082946, -0.586734, -0.536157, -0.145974, -0.565727, 0.08492, 0.118332, -0.659981, -0.040002, 0.099102, -0.684333, -0.175203, 0.055156, -0.696177, -0.303276, -0.034552, -0.692745, -0.388049, -0.128813, -0.674967, -0.45783, -0.192651, -0.643663, -0.517006, -0.232722, -0.610312, -1.03341, -0.330004, 0.027223, -1.01393, -0.2964, -0.104874, -0.936012, -0.283803, -0.239733, -0.828527, -0.286016, -0.350337, -0.722971, -0.291282, -0.445667, -0.625928, -0.295625, -0.529024, -1.03903, -0.431379, -0.079395, -0.974057, -0.406128, -0.21568, -0.991934, -0.536594, -0.187826, -0.868054, -0.394196, -0.326673, -0.893334, -0.510864, -0.300763, -0.905085, -0.634123, -0.274929, -0.760209, -0.387183, -0.422181, -0.787463, -0.491229, -0.39714, -0.803977, -0.602147, -0.372194, -0.808155, -0.717942, -0.348698, -0.65866, -0.381002, -0.507469, -0.685041, -0.47457, -0.483589, -0.703718, -0.575348, -0.458787, -0.713687, -0.680968, -0.434515, -0.712012, -0.787604, -0.410725, -0.565663, -0.371621, -0.583957, -0.588962, -0.456984, -0.56272, -0.607373, -0.55037, -0.538747, -0.61999, -0.649376, -0.513388, -0.626378, -0.750439, -0.487691, -0.624894, -0.847091, -0.460242, -0.421125, -1.24581, 0.312201, -0.480901, -1.25862, 0.179044, -0.513991, -1.22197, 0.038193, -0.532938, -1.16409, -0.094158, -0.543914, -1.10305, -0.217355, -0.5476, -1.04195, -0.32874, -0.340827, -1.3152, 0.212332, -0.390064, -1.30403, 0.068022, -0.247697, -1.36324, 0.098333, -0.416228, -1.24528, -0.067055, -0.288923, -1.31885, -0.042115, -0.147991, -1.37543, -0.018274, -0.434009, -1.17857, -0.191456, -0.315796, -1.25011, -0.168302, -0.187408, -1.31159, -0.146328, -0.050409, -1.35611, -0.125573, -0.446665, -1.11198, -0.306675, -0.335698, -1.17904, -0.285383, -0.215845, -1.23912, -0.263692, -0.088925, -1.28815, -0.241722, 0.041128, -1.32203, -0.220915, -0.455752, -1.04546, -0.411369, -0.351273, -1.10852, -0.394892, -0.237518, -1.16615, -0.374713, -0.1171, -1.21534, -0.351351, 0.006226, -1.25395, -0.325957, 0.125686, -1.28018, -0.30013, 0.214233, -1.23435, -0.358052, 0.315483, -1.17612, -0.398839, 0.200694, -1.15927, -0.453471, 0.305273, -1.09112, -0.497582, 0.185651, -1.07636, -0.551209, 0.290006, -1.00142, -0.594627, 0.169378, -0.988631, -0.646547, 0.270299, -0.907656, -0.685985, 0.150902, -0.89528, -0.733495, 0.244528, -0.809352, -0.765341, 0.127877, -0.794454, -0.801404, 0.210313, -0.707442, -0.822934, 0.424203, -1.10173, -0.434155, 0.41193, -1.00922, -0.534815, 0.534295, -1.01277, -0.465941, 0.392983, -0.913382, -0.630498, 0.517532, -0.915006, -0.567488, 0.641086, -0.911574, -0.494282, 0.366782, -0.81401, -0.71725, 0.493029, -0.813978, -0.661785, 0.619911, -0.810383, -0.597136, 0.740066, -0.800172, -0.517438, 0.330648, -0.711116, -0.788408, 0.458345, -0.709075, -0.743954, 0.589451, -0.704536, -0.690796, 0.715609, -0.696241, -0.622435, 0.813765, -0.675152, -0.5223, 0.282118, -0.607529, -0.836097, 0.409602, -0.600805, -0.805978, 0.544925, -0.592985, -0.767577, 0.679507, -0.585322, -0.714516, 0.783876, -0.570593, -0.622665, 0.852703, -0.548327, -0.510365, 0.852703, -0.548327, -0.510365, 0.831299, -0.434646, -0.575961, 0.783876, -0.570593, -0.622665, 0.749867, -0.452635, -0.695843, 0.679507, -0.585322, -0.714516, 0.626176, -0.46486, -0.782282, 0.544925, -0.592985, -0.767577, 0.482839, -0.478565, -0.818748, 0.409602, -0.600805, -0.805978, 0.346432, -0.49488, -0.844269, 0.282118, -0.607529, -0.836097, 0.221225, -0.51195, -0.863105, 0.78895, -0.309311, -0.638816, 0.69233, -0.323446, -0.759487, 0.72049, -0.186527, -0.689944, 0.551243, -0.344728, -0.823367, 0.60751, -0.202415, -0.800592, 0.625338, -0.085513, -0.718979, 0.406371, -0.371216, -0.848325, 0.460885, -0.239219, -0.842783, 0.502341, -0.108568, -0.811093, 0.513651, -0.010501, -0.723856, 0.271389, -0.398427, -0.866386, 0.319104, -0.275917, -0.862908, 0.36171, -0.150957, -0.845994, 0.39207, -0.036969, -0.80102, 0.400354, 0.045207, -0.711268, 0.147008, -0.427475, -0.878741, 0.18569, -0.312012, -0.877576, 0.224306, -0.191413, -0.866234, 0.259961, -0.074729, -0.836959, 0.285626, 0.022019, -0.777323, 0.294909, 0.087017, -0.687728, 0.294909, 0.087017, -0.687728, 0.184065, 0.077933, -0.72899, 0.285626, 0.022019, -0.777323, 0.159502, -0.003646, -0.813916, 0.259961, -0.074729, -0.836959, 0.125005, -0.113344, -0.860021, 0.224306, -0.191413, -0.866234, 0.091007, -0.233146, -0.880385, 0.18569, -0.312012, -0.877576, 0.060082, -0.351089, -0.885987, 0.147008, -0.427475, -0.878741, 0.032786, -0.462112, -0.88132, 0.059035, 0.058829, -0.761674, 0.023162, -0.039213, -0.837954, -0.079938, 0.024182, -0.782284, -0.011276, -0.160103, -0.872944, -0.120879, -0.095066, -0.847917, -0.229199, -0.060657, -0.776623, -0.037084, -0.281025, -0.884651, -0.142612, -0.220982, -0.8701, -0.248296, -0.189274, -0.817508, -0.325789, -0.171291, -0.745187, -0.057547, -0.39596, -0.881998, -0.155417, -0.336517, -0.87031, -0.253136, -0.293664, -0.832708, -0.331296, -0.268967, -0.767052, -0.393275, -0.238247, -0.70513, -0.072864, -0.505104, -0.867136, -0.16506, -0.446656, -0.855057, -0.257463, -0.395568, -0.825384, -0.338412, -0.356774, -0.771424, -0.404464, -0.321222, -0.712294, -0.46413, -0.277916, -0.657896, 0.214233, -1.23435, -0.358052, 0.101145, -1.21164, -0.396749, -0.01854, -1.18106, -0.429518, -0.138658, -1.14149, -0.457755, -0.254822, -1.09296, -0.480344, -0.36357, -1.03609, -0.495219, -0.461591, -0.972973, -0.499927, 0.200694, -1.15927, -0.453471, 0.082273, -1.13486, -0.495776, 0.185651, -1.07636, -0.551209, -0.037347, -1.10392, -0.531175, 0.065902, -1.05304, -0.59403, 0.169378, -0.988631, -0.646547, -0.155007, -1.06464, -0.559252, -0.052244, -1.02245, -0.628738, 0.050834, -0.965765, -0.686929, 0.150902, -0.89528, -0.733495, -0.267344, -1.01516, -0.576743, -0.166378, -0.980904, -0.651308, -0.063843, -0.931291, -0.714225, 0.035487, -0.868444, -0.764121, 0.127877, -0.794454, -0.801404, -0.370553, -0.954619, -0.579301, -0.272489, -0.923192, -0.652938, -0.171713, -0.878005, -0.716285, -0.073276, -0.823087, -0.769555, 0.019543, -0.761167, -0.812132, 0.102133, -0.693275, -0.842416, -0.461172, -0.88553, -0.562973, -0.367838, -0.854889, -0.634325, -0.270643, -0.814721, -0.699818, -0.173766, -0.767046, -0.758182, -0.079569, -0.714159, -0.807224, 0.0081, -0.66036, -0.848095, 0.079964, -0.612849, -0.866765, -0.46413, -0.277916, -0.657896, -0.481549, -0.35333, -0.651754, -0.404464, -0.321222, -0.712294, -0.417893, -0.402604, -0.705685, -0.338412, -0.356774, -0.771424, -0.346043, -0.448246, -0.760638, -0.257463, -0.395568, -0.825384, -0.262001, -0.498133, -0.804347, -0.16506, -0.446656, -0.855057, -0.171378, -0.553701, -0.829006, -0.072864, -0.505104, -0.867136, -0.080182, -0.609749, -0.839492, -0.500138, -0.43426, -0.636164, -0.429911, -0.490397, -0.688647, -0.516111, -0.523202, -0.614633, -0.352106, -0.544945, -0.737563, -0.439652, -0.584813, -0.664111, -0.528436, -0.618605, -0.589086, -0.265489, -0.60179, -0.77317, -0.357147, -0.645607, -0.706809, -0.447456, -0.683877, -0.634664, -0.537264, -0.717699, -0.561048, -0.173694, -0.659276, -0.793374, -0.267825, -0.706722, -0.73636, -0.36185, -0.749072, -0.671631, -0.454416, -0.78533, -0.601922, -0.543414, -0.816664, -0.53072, -0.079569, -0.714159, -0.807224, -0.173766, -0.767046, -0.758182, -0.270643, -0.814721, -0.699818, -0.367838, -0.854889, -0.634325, -0.461172, -0.88553, -0.562973, -0.546714, -0.908274, -0.491713 )
[sub_resource type="PhysicsMaterial" id=12]
friction = 0.2
[sub_resource type="ViewportTexture" id=13]
viewport_path = NodePath("Water/CollisionViewport")
[sub_resource type="ViewportTexture" id=14]
viewport_path = NodePath("Water/SimulationViewport")
[sub_resource type="ImageTexture" id=15]
[sub_resource type="StyleBoxFlat" id=16]
content_margin_left = 0.0
content_margin_right = 0.0
content_margin_top = 4.0
content_margin_bottom = 4.0
bg_color = Color( 0.25098, 0.25098, 0.25098, 1 )
border_width_top = 7
border_color = Color( 0.25098, 0.25098, 0.25098, 1 )
[sub_resource type="StyleBoxEmpty" id=17]
[sub_resource type="DynamicFont" id=18]
size = 22
font_data = ExtResource( 13 )
[node name="Main" type="Spatial"]
script = ExtResource( 9 )
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource( 1 )
[node name="DirectionalLight" type="DirectionalLight" parent="."]
transform = Transform( -0.424338, 0.27786, -0.861818, -0.252589, 0.877655, 0.407334, 0.869561, 0.390533, -0.302238, -4.77773, 21.0524, -2.18307 )
shadow_enabled = true
directional_shadow_max_distance = 200.0
[node name="CameraPivot" type="Spatial" parent="."]
transform = Transform( 0.707107, 0, 0.707107, 0, 1, 0, -0.707107, 0, 0.707107, 0, 0, 0 )
[node name="Camera" type="Camera" parent="CameraPivot"]
transform = Transform( 1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 65, 75 )
cull_mask = 1048573
current = true
fov = 45.0
size = 75.0
near = 0.1
far = 1156.5
script = ExtResource( 7 )
[node name="Water" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.011, -12.5, 0 )
mesh = ExtResource( 5 )
material/0 = ExtResource( 4 )
script = ExtResource( 1 )
__meta__ = {
"_edit_lock_": true
}
land_texture = ExtResource( 15 )
[node name="SimulationViewport" type="Viewport" parent="Water"]
size = Vector2( 200, 200 )
render_target_v_flip = true
render_target_update_mode = 1
[node name="ColorRect" type="ColorRect" parent="Water/SimulationViewport"]
material = SubResource( 2 )
margin_right = 200.0
margin_bottom = 200.0
[node name="CollisionViewport" type="Viewport" parent="Water"]
size = Vector2( 200, 200 )
render_target_v_flip = true
render_target_update_mode = 3
[node name="CollisionCamera" type="Camera" parent="Water/CollisionViewport"]
transform = Transform( 1, 0, 0, 0, -1.62921e-07, 1, 0, -1, -1.62921e-07, 0, 1, 0 )
cull_mask = 2
environment = SubResource( 3 )
projection = 1
size = 50.0
near = 1.0
far = 9999.0
[node name="CrateSpawn" type="Area" parent="."]
collision_layer = 4
[node name="CollisionShape" type="CollisionShape" parent="CrateSpawn"]
shape = SubResource( 4 )
[node name="Border" type="StaticBody" parent="."]
input_ray_pickable = false
[node name="CollisionShape" type="CollisionShape" parent="Border"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -26 )
shape = SubResource( 5 )
[node name="CollisionShape2" type="CollisionShape" parent="Border"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 26 )
shape = SubResource( 6 )
[node name="CollisionShape3" type="CollisionShape" parent="Border"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 26, 0, 0 )
shape = SubResource( 7 )
[node name="CollisionShape4" type="CollisionShape" parent="Border"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -26, 0, 0 )
shape = SubResource( 7 )
[node name="Island" type="StaticBody" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -8.99992, 0, 0 )
[node name="IslandMesh" type="MeshInstance" parent="Island"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.605271, 13.827 )
mesh = ExtResource( 2 )
material/0 = SubResource( 8 )
[node name="PalmtreeMesh" type="MeshInstance" parent="Island"]
transform = Transform( 1, 0, 0, 0, 0.991374, 0.131063, 0, -0.131063, 0.991374, -3.09712, 0.954942, 13.6307 )
mesh = ExtResource( 6 )
material/0 = SubResource( 9 )
material/1 = SubResource( 10 )
[node name="CollisionShape" type="CollisionShape" parent="Island"]
transform = Transform( 10, 0, 0, 0, 10, 0, 0, 0, 10, 0, -0.605271, 13.827 )
shape = SubResource( 11 )
[node name="Surfboard" parent="." instance=ExtResource( 11 )]
transform = Transform( 0.968406, 0.243491, -0.0538635, -0.163188, 0.782075, 0.601439, 0.18857, -0.573648, 0.797102, -2.91022, 3.4959, 12.3224 )
physics_material_override = SubResource( 12 )
sleeping = true
water_node_path = NodePath("../Water")
[node name="Boat" parent="." instance=ExtResource( 3 )]
transform = Transform( -0.924173, 0, 0.381974, 0, 1, 0, -0.381974, 0, -0.924173, 0, 0, -8.65714 )
water_node_path = NodePath("../Water")
[node name="UI" type="CanvasLayer" parent="."]
[node name="MouseDragInput" type="Control" parent="UI"]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="CollisionVisualisation" type="TextureRect" parent="UI"]
visible = false
margin_left = 4.10699
margin_top = 536.153
margin_right = 204.107
margin_bottom = 736.153
texture = SubResource( 13 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="SimulationVisualisation" type="TextureRect" parent="UI"]
visible = false
margin_right = 202.0
margin_bottom = 202.0
texture = SubResource( 14 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ButtonReload" type="TextureButton" parent="UI"]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -56.0
margin_top = 16.0
margin_right = -11.0
margin_bottom = 61.0
texture_normal = ExtResource( 10 )
expand = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="GridPointsSlider" type="HSlider" parent="UI"]
margin_left = 32.0
margin_top = 24.0
margin_right = 240.0
margin_bottom = 64.0
custom_icons/tick = SubResource( 15 )
custom_icons/grabber_disabled = ExtResource( 12 )
custom_icons/grabber_highlight = ExtResource( 12 )
custom_icons/grabber = ExtResource( 12 )
custom_styles/slider = SubResource( 16 )
custom_styles/grabber_area = SubResource( 17 )
min_value = 7.0
max_value = 9.0
value = 9.0
rounded = true
tick_count = 3
ticks_on_borders = true
script = ExtResource( 8 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="UI/GridPointsSlider"]
anchor_top = -0.4
anchor_right = 0.96
anchor_bottom = 0.375
margin_right = 8.31999
margin_bottom = -9.53674e-07
custom_fonts/font = SubResource( 18 )
custom_colors/font_color = Color( 0.25098, 0.25098, 0.25098, 1 )
text = "Water Quality: 512 px"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="gui_input" from="UI/MouseDragInput" to="CameraPivot/Camera" method="_on_gui_input"]
[connection signal="pressed" from="UI/ButtonReload" to="." method="_on_reload_pressed"]
[connection signal="grid_points_changed" from="UI/GridPointsSlider" to="Water" method="set_grid_points"]
[connection signal="value_changed" from="UI/GridPointsSlider" to="UI/GridPointsSlider" method="_on_value_changed"]