ile-de-test/scenes/water-zone.tscn

115 lines
4.9 KiB
Text

[gd_scene load_steps=14 format=3 uid="uid://clmlpy36ghsio"]
[ext_resource type="Script" path="res://assets/objects/water-zone.gd" id="1_s4mf8"]
[ext_resource type="PackedScene" uid="uid://duptl2212yaxs" path="res://assets/objects/boat/delta_boat.tscn" id="2_824w2"]
[ext_resource type="PackedScene" uid="uid://d1kldif6arq4s" path="res://assets/objects/boat/delta_boat_2.tscn" id="3_mogta"]
[ext_resource type="Shader" path="res://assets/shaders/water.gdshader" id="4_k8kcr"]
[sub_resource type="SphereShape3D" id="SphereShape3D_08c7l"]
radius = 2.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_bm6uj"]
render_priority = 0
shader = ExtResource("4_k8kcr")
shader_parameter/wave_speed = 0.5
shader_parameter/wave_a = Vector4(1, 1, 0.35, 2)
shader_parameter/wave_b = Vector4(1, 0.6, 0.3, 1.55)
shader_parameter/wave_c = Vector4(1, 1, 0.25, 1)
shader_parameter/sampler_scale = Vector2(0.25, 0.25)
shader_parameter/sampler_direction = Vector2(0.05, 0.04)
shader_parameter/uv_sampler_scale = Vector2(0.25, 0.25)
shader_parameter/uv_sampler_strength = 0.04
shader_parameter/foam_level = 0.5
shader_parameter/refraction = 0.075
shader_parameter/color_deep = Color(0.701961, 0.792157, 0.992157, 0)
shader_parameter/color_shallow = null
shader_parameter/beers_law = 2.0
shader_parameter/depth_offset = -0.75
shader_parameter/projector = null
[sub_resource type="PlaneMesh" id="PlaneMesh_uh76x"]
material = SubResource("ShaderMaterial_bm6uj")
[sub_resource type="BoxMesh" id="BoxMesh_wdr26"]
[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)
[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"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_bmkr3"]
render_priority = 0
shader = ExtResource("4_k8kcr")
shader_parameter/wave_speed = 0.5
shader_parameter/wave_a = Vector4(1, 1, 0.35, 3)
shader_parameter/wave_b = Vector4(1, 0.6, 0.3, 1.55)
shader_parameter/wave_c = Vector4(1, 1.3, 0.25, 0.9)
shader_parameter/sampler_scale = Vector2(0.25, 0.25)
shader_parameter/sampler_direction = Vector2(0.05, 0.04)
shader_parameter/uv_sampler_scale = Vector2(0.25, 0.25)
shader_parameter/uv_sampler_strength = 0.04
shader_parameter/foam_level = 0.5
shader_parameter/refraction = 0.075
shader_parameter/color_deep = null
shader_parameter/color_shallow = null
shader_parameter/beers_law = 2.0
shader_parameter/depth_offset = -0.75
shader_parameter/projector = null
[sub_resource type="BoxMesh" id="BoxMesh_1ovik"]
material = SubResource("ShaderMaterial_bmkr3")
subdivide_width = 128
subdivide_height = 128
subdivide_depth = 2
[node name="water-zone" type="Node3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.964225, 0)
script = ExtResource("1_s4mf8")
[node name="delta_boat" parent="." instance=ExtResource("2_824w2")]
transform = Transform3D(-0.870957, 0, -0.49136, 0, 1, 0, 0.49136, 0, -0.870957, 8.37948, -1.07318, 14.7149)
[node name="Area3D" type="Area3D" parent="delta_boat"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="delta_boat/Area3D"]
shape = SubResource("SphereShape3D_08c7l")
[node name="delta_boat_2" parent="." instance=ExtResource("3_mogta")]
transform = Transform3D(0.870742, 0, 0.49174, 0, 1, 0, -0.49174, 0, 0.870742, 10.8758, -1.04386, 12.09)
[node name="water-level" type="MeshInstance3D" parent="."]
transform = Transform3D(20, 0, 0, 0, 1, 0, 0, 0, 20, -0.242517, -1.07318, 0.480083)
mesh = SubResource("PlaneMesh_uh76x")
[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="MeshInstance3D" type="MeshInstance3D" parent="underwater"]
transform = Transform3D(40, 0, 0, 0, 6, 0, 0, 0, 40, 0, -4.3, 0)
transparency = 0.58
cast_shadow = 2
mesh = SubResource("BoxMesh_wdr26")
[node name="CollisionShape3D" type="CollisionShape3D" parent="underwater"]
transform = Transform3D(20, 0, 0, 0, 20, 0, 0, 0, 20, 0, -4.10377, 0)
shape = SubResource("ConvexPolygonShape3D_7h41h")
[node name="MeshInstance3D2" type="MeshInstance3D" parent="underwater"]
transform = Transform3D(20, 0, 0, 0, 1, 0, 0, 0, 20, 0, -1.11376, 0)
material_override = SubResource("ORMMaterial3D_o3dm5")
transparency = 0.59
mesh = SubResource("PlaneMesh_gp2c0")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(20, 0, 0, 0, 3, 0, 0, 0, 20, 0, -3.96834, 0)
mesh = SubResource("BoxMesh_1ovik")
[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"]
[connection signal="body_entered" from="underwater" to="." method="_on_underwater_body_entered"]
[connection signal="body_exited" from="underwater" to="." method="_on_underwater_body_exited"]