[gd_scene load_steps=9 format=3 uid="uid://hs3a438it6j6"]

[ext_resource type="Material" uid="uid://djvstk5qjvdan" path="res://ocean/Ocean2.tres" id="1_kiaws"]
[ext_resource type="Script" uid="uid://c12fpc7inp27s" path="res://ocean/ocean.gd" id="2_ap626"]
[ext_resource type="PackedScene" uid="uid://babgqvkugifk1" path="res://boat/boat.tscn" id="3_ap626"]

[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_kiaws"]
sky_horizon_color = Color(0.662243, 0.671743, 0.686743, 1)
ground_horizon_color = Color(0.662243, 0.671743, 0.686743, 1)

[sub_resource type="Sky" id="Sky_ap626"]
sky_material = SubResource("ProceduralSkyMaterial_kiaws")

[sub_resource type="Environment" id="Environment_2qsx7"]
background_mode = 2
sky = SubResource("Sky_ap626")
tonemap_mode = 2
glow_enabled = true

[sub_resource type="PlaneMesh" id="PlaneMesh_mf4pf"]
resource_name = "OceanTile_Current"
material = ExtResource("1_kiaws")
size = Vector2(10.5, 10.5)
subdivide_width = 100
subdivide_depth = 100

[sub_resource type="PlaneMesh" id="PlaneMesh_ap626"]
resource_name = "OceanTile_Near"
material = ExtResource("1_kiaws")
size = Vector2(10.5, 10.5)
subdivide_width = 50
subdivide_depth = 50

[node name="Node3D" type="Node3D"]

[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_2qsx7")

[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(-0.866025, -0.433013, 0.25, 0, 0.5, 0.866025, -0.5, 0.75, -0.433013, 0, 3.48773, 0)
shadow_enabled = true

[node name="Ocean" type="Node3D" parent="."]

[node name="Water_Tile_00" type="MeshInstance3D" parent="Ocean"]
mesh = SubResource("PlaneMesh_mf4pf")
skeleton = NodePath("../..")
script = ExtResource("2_ap626")

[node name="Water_Tile_02" type="MeshInstance3D" parent="Ocean"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 0, 0)
mesh = SubResource("PlaneMesh_ap626")
skeleton = NodePath("../..")
script = ExtResource("2_ap626")

[node name="Water_Tile_01" type="MeshInstance3D" parent="Ocean"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 10)
mesh = SubResource("PlaneMesh_ap626")
skeleton = NodePath("../..")
script = ExtResource("2_ap626")

[node name="Water_Tile_03" type="MeshInstance3D" parent="Ocean"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -10)
mesh = SubResource("PlaneMesh_ap626")
skeleton = NodePath("../..")
script = ExtResource("2_ap626")

[node name="Water_Tile_04" type="MeshInstance3D" parent="Ocean"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10, 0, 0)
mesh = SubResource("PlaneMesh_ap626")
skeleton = NodePath("../..")
script = ExtResource("2_ap626")

[node name="Water_Tile_05" type="MeshInstance3D" parent="Ocean"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 0, -10)
mesh = SubResource("PlaneMesh_ap626")
skeleton = NodePath("../..")
script = ExtResource("2_ap626")

[node name="Water_Tile_06" type="MeshInstance3D" parent="Ocean"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10, 0, 10)
mesh = SubResource("PlaneMesh_ap626")
skeleton = NodePath("../..")
script = ExtResource("2_ap626")

[node name="Water_Tile_07" type="MeshInstance3D" parent="Ocean"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 0, 10)
mesh = SubResource("PlaneMesh_ap626")
skeleton = NodePath("../..")
script = ExtResource("2_ap626")

[node name="Water_Tile_08" type="MeshInstance3D" parent="Ocean"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10, 0, -10)
mesh = SubResource("PlaneMesh_ap626")
skeleton = NodePath("../..")
script = ExtResource("2_ap626")

[node name="Boat" parent="." node_paths=PackedStringArray("ocean") instance=ExtResource("3_ap626")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.473399, -0.388613, 0)
float_force = 75.0
ocean = NodePath("../Ocean/Water_Tile_00")
max_thrust_force = 3000.0
