2025-02-19 23:40:48 -05:00
|
|
|
[gd_scene load_steps=17 format=3 uid="uid://cvgligyy2psi8"]
|
2025-01-31 14:55:49 -05:00
|
|
|
|
|
|
|
[ext_resource type="Material" uid="uid://b1f46mvfaphsh" path="res://Materials/Water.tres" id="1_p35v0"]
|
2025-02-19 23:40:48 -05:00
|
|
|
[ext_resource type="Material" uid="uid://doo0lbnv6560s" path="res://Materials/Water2.tres" id="2_qhg81"]
|
2025-02-02 15:40:03 -05:00
|
|
|
[ext_resource type="Texture2D" uid="uid://v6apgwie2maw" path="res://autumn_field_puresky_4k.exr" id="3_vl8or"]
|
2025-02-19 15:09:30 -05:00
|
|
|
[ext_resource type="Script" path="res://Scripts/BuoyantBody.gd" id="4_f67eq"]
|
2025-02-19 23:40:48 -05:00
|
|
|
[ext_resource type="Shader" path="res://Shaders/TimeTest.gdshader" id="5_25la2"]
|
|
|
|
[ext_resource type="Script" path="res://Scripts/BadWaterShader.gd" id="5_ltuhf"]
|
2025-01-31 14:55:49 -05:00
|
|
|
|
|
|
|
[sub_resource type="PlaneMesh" id="PlaneMesh_gqyhx"]
|
2025-02-02 00:09:30 -05:00
|
|
|
lightmap_size_hint = Vector2i(52, 52)
|
|
|
|
material = ExtResource("1_p35v0")
|
|
|
|
size = Vector2(10, 10)
|
|
|
|
subdivide_width = 200
|
|
|
|
subdivide_depth = 200
|
|
|
|
|
|
|
|
[sub_resource type="PlaneMesh" id="PlaneMesh_w7hsm"]
|
2025-02-19 23:40:48 -05:00
|
|
|
material = ExtResource("2_qhg81")
|
2025-02-02 15:40:03 -05:00
|
|
|
size = Vector2(50, 50)
|
|
|
|
subdivide_width = 1000
|
|
|
|
subdivide_depth = 1000
|
|
|
|
|
|
|
|
[sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_xulfv"]
|
|
|
|
panorama = ExtResource("3_vl8or")
|
|
|
|
|
|
|
|
[sub_resource type="Sky" id="Sky_l588k"]
|
|
|
|
sky_material = SubResource("PanoramaSkyMaterial_xulfv")
|
|
|
|
|
|
|
|
[sub_resource type="Environment" id="Environment_8bg6o"]
|
|
|
|
background_mode = 2
|
|
|
|
sky = SubResource("Sky_l588k")
|
|
|
|
ambient_light_source = 3
|
|
|
|
reflected_light_source = 2
|
|
|
|
ssr_enabled = true
|
|
|
|
ssao_enabled = true
|
|
|
|
fog_mode = 1
|
|
|
|
fog_light_color = Color(0.302729, 0.545879, 0.912975, 1)
|
|
|
|
fog_density = 1.0
|
|
|
|
volumetric_fog_emission = Color(0.427666, 0.607438, 0.994933, 1)
|
2025-01-31 14:55:49 -05:00
|
|
|
|
2025-02-19 23:40:48 -05:00
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_g1sji"]
|
|
|
|
render_priority = 0
|
|
|
|
shader = ExtResource("5_25la2")
|
|
|
|
|
2025-02-19 15:09:30 -05:00
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_ffhgb"]
|
2025-02-19 23:40:48 -05:00
|
|
|
material = SubResource("ShaderMaterial_g1sji")
|
2025-02-19 15:09:30 -05:00
|
|
|
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_bt6if"]
|
|
|
|
|
2025-02-19 23:40:48 -05:00
|
|
|
[sub_resource type="PlaneMesh" id="PlaneMesh_wuatm"]
|
|
|
|
size = Vector2(50, 50)
|
|
|
|
subdivide_width = 20
|
|
|
|
subdivide_depth = 20
|
|
|
|
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_84jie"]
|
|
|
|
transparency = 1
|
|
|
|
albedo_color = Color(0, 0.372549, 1, 0.6)
|
|
|
|
|
2025-01-31 14:55:49 -05:00
|
|
|
[node name="WaterPlane" type="Node3D"]
|
|
|
|
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
2025-02-02 15:40:03 -05:00
|
|
|
visible = false
|
2025-01-31 14:55:49 -05:00
|
|
|
mesh = SubResource("PlaneMesh_gqyhx")
|
2025-02-02 00:09:30 -05:00
|
|
|
|
|
|
|
[node name="MeshInstance3D2" type="MeshInstance3D" parent="."]
|
2025-02-02 15:40:03 -05:00
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.400336, 0, 11.821)
|
|
|
|
cast_shadow = 0
|
2025-02-02 00:09:30 -05:00
|
|
|
mesh = SubResource("PlaneMesh_w7hsm")
|
2025-01-31 14:55:49 -05:00
|
|
|
|
2025-02-02 15:40:03 -05:00
|
|
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
|
|
|
environment = SubResource("Environment_8bg6o")
|
|
|
|
|
|
|
|
[node name="Camera3D" type="Camera3D" parent="."]
|
|
|
|
transform = Transform3D(-0.718151, 0, 0.695888, 0, 1, 0, -0.695888, 0, -0.718151, 20.1979, 4.08685, -9.30518)
|
|
|
|
fov = 70.0
|
2025-02-19 15:09:30 -05:00
|
|
|
|
|
|
|
[node name="RigidBody3D" type="RigidBody3D" parent="." node_paths=PackedStringArray("samplePoints")]
|
2025-02-19 23:40:48 -05:00
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12.0169, 1.67, -1.69189)
|
|
|
|
linear_damp = 1.5
|
|
|
|
angular_damp = 5.0
|
2025-02-19 15:09:30 -05:00
|
|
|
script = ExtResource("4_f67eq")
|
2025-02-19 23:40:48 -05:00
|
|
|
buoyancy = 3.0
|
2025-02-19 15:09:30 -05:00
|
|
|
samplePoints = [NodePath("Node3D"), NodePath("Node3D2"), NodePath("Node3D3"), NodePath("Node3D4"), NodePath("Node3D5"), NodePath("Node3D6"), NodePath("Node3D7"), NodePath("Node3D8")]
|
2025-02-19 23:40:48 -05:00
|
|
|
amplitude = 0.085
|
|
|
|
speed = 1.355
|
|
|
|
waveCount = 4
|
|
|
|
amplitudeScaleFactor = 0.835
|
|
|
|
frequencyScaleFactor = 1.145
|
|
|
|
dirs = Array[Vector2]([Vector2(0.981, -0.588), Vector2(0.035, -0.977), Vector2(-0.809, -0.351), Vector2(0.989, -0.24)])
|
2025-02-19 15:09:30 -05:00
|
|
|
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="RigidBody3D"]
|
|
|
|
mesh = SubResource("BoxMesh_ffhgb")
|
|
|
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="RigidBody3D"]
|
|
|
|
shape = SubResource("BoxShape3D_bt6if")
|
|
|
|
|
|
|
|
[node name="Node3D" type="Node3D" parent="RigidBody3D"]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, -0.5, 0.5)
|
|
|
|
|
|
|
|
[node name="Node3D2" type="Node3D" parent="RigidBody3D"]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.5, -0.5, 0.5)
|
|
|
|
|
|
|
|
[node name="Node3D3" type="Node3D" parent="RigidBody3D"]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.5, 0.5, 0.5)
|
|
|
|
|
|
|
|
[node name="Node3D4" type="Node3D" parent="RigidBody3D"]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 0.5, 0.5)
|
|
|
|
|
|
|
|
[node name="Node3D5" type="Node3D" parent="RigidBody3D"]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 0.5, -0.5)
|
|
|
|
|
|
|
|
[node name="Node3D6" type="Node3D" parent="RigidBody3D"]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.5, 0.5, -0.5)
|
|
|
|
|
|
|
|
[node name="Node3D7" type="Node3D" parent="RigidBody3D"]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.5, -0.5, -0.5)
|
|
|
|
|
|
|
|
[node name="Node3D8" type="Node3D" parent="RigidBody3D"]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, -0.5, -0.5)
|
2025-02-19 23:40:48 -05:00
|
|
|
|
|
|
|
[node name="MeshInstance3D3" type="MeshInstance3D" parent="."]
|
|
|
|
visible = false
|
|
|
|
mesh = SubResource("PlaneMesh_wuatm")
|
|
|
|
surface_material_override/0 = SubResource("StandardMaterial3D_84jie")
|
|
|
|
script = ExtResource("5_ltuhf")
|
|
|
|
amplitude = 0.085
|
|
|
|
speed = 1.355
|
|
|
|
waveCount = 1
|
|
|
|
amplitudeScaleFactor = 0.85
|
|
|
|
frequencyScaleFactor = 1.145
|
|
|
|
dirs = Array[Vector2]([Vector2(0.981, -0.588)])
|