2022-09-06 22:27:28 +00:00
|
|
|
[gd_scene load_steps=16 format=3 uid="uid://clmlpy36ghsio"]
|
2022-02-04 16:06:52 +00:00
|
|
|
|
2022-02-04 23:03:06 +00:00
|
|
|
[ext_resource type="Shader" path="res://maps/shaders/water.gdshader" id="1_j5guc"]
|
2022-02-06 00:49:25 +00:00
|
|
|
[ext_resource type="Script" path="res://maps/water-zone.gd" id="1_s4mf8"]
|
2022-02-16 21:27:46 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://duptl2212yaxs" path="res://maps/objects/delta_boat.tscn" id="2_824w2"]
|
2022-03-25 18:20:34 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://ip4lkyho0gry" path="res://maps/objects/water_space.tscn" id="2_nnfoe"]
|
2022-03-07 21:26:34 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://d1kldif6arq4s" path="res://maps/objects/delta_boat_2.tscn" id="3_mogta"]
|
2022-02-04 23:03:06 +00:00
|
|
|
|
2022-02-15 20:41:14 +00:00
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_08c7l"]
|
|
|
|
radius = 2.0
|
|
|
|
|
2022-09-06 22:27:28 +00:00
|
|
|
[sub_resource type="Texture2DArray" id="Texture2DArray_543vo"]
|
2022-02-04 23:16:11 +00:00
|
|
|
|
2022-03-15 10:40:40 +00:00
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_bm6uj"]
|
2022-02-04 23:03:06 +00:00
|
|
|
render_priority = 0
|
2022-09-06 22:27:28 +00:00
|
|
|
shader = ExtResource("1_j5guc")
|
|
|
|
wave_speed = null
|
|
|
|
wave_c = null
|
|
|
|
wave_b = null
|
|
|
|
wave_a = null
|
|
|
|
uv_sampler_strength = null
|
|
|
|
uv_sampler_scale = null
|
|
|
|
sampler_scale = null
|
|
|
|
sampler_direction = null
|
|
|
|
refraction = null
|
|
|
|
projector = null
|
|
|
|
foam_level = null
|
|
|
|
depth_offset = null
|
|
|
|
color_shallow = Color(0.0117647, 0.380392, 0.564706, 1)
|
|
|
|
color_deep = Color(0, 0.486275, 0.564706, 1)
|
|
|
|
caustic_sampler = SubResource("Texture2DArray_543vo")
|
|
|
|
beers_law = null
|
2022-02-04 16:06:52 +00:00
|
|
|
|
|
|
|
[sub_resource type="PlaneMesh" id="PlaneMesh_uh76x"]
|
2022-09-06 22:27:28 +00:00
|
|
|
material = SubResource("ShaderMaterial_bm6uj")
|
2022-02-04 16:06:52 +00:00
|
|
|
|
2022-02-06 00:49:25 +00:00
|
|
|
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_7h41h"]
|
|
|
|
points = PackedVector3Array(1, 1, 1, 1, 1, -1, -1, 1, 1, 1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, 1, -1, -1, -1)
|
|
|
|
|
2022-03-25 18:20:34 +00:00
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_wdr26"]
|
|
|
|
|
|
|
|
[sub_resource type="ORMMaterial3D" id="ORMMaterial3D_o3dm5"]
|
|
|
|
cull_mode = 1
|
|
|
|
no_depth_test = true
|
|
|
|
albedo_color = Color(0.14902, 0.372549, 1, 1)
|
|
|
|
|
|
|
|
[sub_resource type="PlaneMesh" id="PlaneMesh_gp2c0"]
|
|
|
|
|
2022-02-06 00:49:25 +00:00
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_bmkr3"]
|
|
|
|
render_priority = 0
|
2022-09-06 22:27:28 +00:00
|
|
|
shader = ExtResource("1_j5guc")
|
|
|
|
wave_speed = null
|
|
|
|
wave_c = null
|
|
|
|
wave_b = null
|
|
|
|
wave_a = null
|
|
|
|
uv_sampler_strength = null
|
|
|
|
uv_sampler_scale = null
|
|
|
|
sampler_scale = null
|
|
|
|
sampler_direction = null
|
|
|
|
refraction = null
|
|
|
|
projector = null
|
|
|
|
foam_level = null
|
|
|
|
depth_offset = null
|
|
|
|
color_shallow = null
|
|
|
|
color_deep = null
|
|
|
|
beers_law = null
|
2022-02-06 00:49:25 +00:00
|
|
|
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_1ovik"]
|
2022-09-06 22:27:28 +00:00
|
|
|
material = SubResource("ShaderMaterial_bmkr3")
|
2022-02-06 00:49:25 +00:00
|
|
|
subdivide_width = 128
|
|
|
|
subdivide_height = 128
|
|
|
|
subdivide_depth = 2
|
|
|
|
|
2022-02-04 16:06:52 +00:00
|
|
|
[node name="water-zone" type="Node3D"]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.964225, 0)
|
2022-09-06 22:27:28 +00:00
|
|
|
script = ExtResource("1_s4mf8")
|
2022-02-04 16:06:52 +00:00
|
|
|
|
2022-09-06 22:27:28 +00:00
|
|
|
[node name="delta_boat" parent="." instance=ExtResource("2_824w2")]
|
2022-02-06 15:38:45 +00:00
|
|
|
transform = Transform3D(-0.870957, 0, -0.49136, 0, 1, 0, 0.49136, 0, -0.870957, 7.46743, -1.07318, 12.6543)
|
|
|
|
|
2022-02-15 20:41:14 +00:00
|
|
|
[node name="Area3D" type="Area3D" parent="delta_boat"]
|
|
|
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="delta_boat/Area3D"]
|
2022-09-06 22:27:28 +00:00
|
|
|
shape = SubResource("SphereShape3D_08c7l")
|
2022-02-15 20:41:14 +00:00
|
|
|
|
2022-09-06 22:27:28 +00:00
|
|
|
[node name="delta_boat_2" parent="." instance=ExtResource("3_mogta")]
|
2022-03-07 21:26:34 +00:00
|
|
|
transform = Transform3D(0.870742, 0, 0.49174, 0, 1, 0, -0.49174, 0, 0.870742, 9.57602, -1.04386, 11.739)
|
|
|
|
|
2022-02-04 16:06:52 +00:00
|
|
|
[node name="water-level" type="MeshInstance3D" parent="."]
|
2022-02-04 23:03:06 +00:00
|
|
|
transform = Transform3D(20, 0, 0, 0, 1, 0, 0, 0, 20, -0.242517, -1.07318, 0.480083)
|
2022-09-06 22:27:28 +00:00
|
|
|
mesh = SubResource("PlaneMesh_uh76x")
|
2022-02-04 16:06:52 +00:00
|
|
|
|
2022-02-06 00:49:25 +00:00
|
|
|
[node name="underwater" type="Area3D" parent="."]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.49012e-08, -5.96046e-08, 2.98023e-08)
|
|
|
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="underwater"]
|
|
|
|
transform = Transform3D(20, 0, 0, 0, 3, 0, 0, 0, 20, 0, -4.10377, 0)
|
2022-09-06 22:27:28 +00:00
|
|
|
shape = SubResource("ConvexPolygonShape3D_7h41h")
|
2022-02-06 00:49:25 +00:00
|
|
|
|
2022-03-25 18:20:34 +00:00
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="underwater"]
|
|
|
|
transform = Transform3D(40, 0, 0, 0, 6, 0, 0, 0, 40, 0, -4.3, 0)
|
|
|
|
visible = false
|
|
|
|
transparency = 0.58
|
|
|
|
cast_shadow = 2
|
2022-09-06 22:27:28 +00:00
|
|
|
mesh = SubResource("BoxMesh_wdr26")
|
2022-03-25 18:20:34 +00:00
|
|
|
|
|
|
|
[node name="MeshInstance3D2" type="MeshInstance3D" parent="underwater"]
|
|
|
|
transform = Transform3D(20, 0, 0, 0, 1, 0, 0, 0, 20, 0, -1.11376, 0)
|
2022-09-06 22:27:28 +00:00
|
|
|
material_override = SubResource("ORMMaterial3D_o3dm5")
|
2022-03-25 18:20:34 +00:00
|
|
|
transparency = 0.59
|
2022-09-06 22:27:28 +00:00
|
|
|
mesh = SubResource("PlaneMesh_gp2c0")
|
2022-03-25 18:20:34 +00:00
|
|
|
|
2022-09-06 22:27:28 +00:00
|
|
|
[node name="water-space" parent="." instance=ExtResource("2_nnfoe")]
|
2022-02-06 00:49:25 +00:00
|
|
|
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
|
|
|
transform = Transform3D(20, 0, 0, 0, 3, 0, 0, 0, 20, 0, -3.96834, 0)
|
|
|
|
visible = false
|
2022-09-06 22:27:28 +00:00
|
|
|
mesh = SubResource("BoxMesh_1ovik")
|
2022-02-06 00:49:25 +00:00
|
|
|
|
2022-02-15 20:41:14 +00:00
|
|
|
[connection signal="body_entered" from="delta_boat/Area3D" to="." method="_on_area_3d_body_entered"]
|
|
|
|
[connection signal="body_exited" from="delta_boat/Area3D" to="." method="_on_area_3d_body_exited"]
|
2022-02-06 00:49:25 +00:00
|
|
|
[connection signal="body_entered" from="underwater" to="." method="_on_underwater_body_entered"]
|
|
|
|
[connection signal="body_exited" from="underwater" to="." method="_on_underwater_body_exited"]
|