diff options
-rw-r--r-- | character/fps_controller/fps_controller.tscn | 1 | ||||
-rw-r--r-- | water/Water.tscn | 20 |
2 files changed, 19 insertions, 2 deletions
diff --git a/character/fps_controller/fps_controller.tscn b/character/fps_controller/fps_controller.tscn index c0009d5..d187121 100644 --- a/character/fps_controller/fps_controller.tscn +++ b/character/fps_controller/fps_controller.tscn @@ -14,6 +14,7 @@ shape = SubResource( 1 ) [node name="Camera" type="Camera" parent="."] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.796127, 0 ) +far = 5000.0 [node name="RayCast" type="RayCast" parent="Camera"] cast_to = Vector3( 0, 0, -3 ) diff --git a/water/Water.tscn b/water/Water.tscn index 0cf4a50..3724e82 100644 --- a/water/Water.tscn +++ b/water/Water.tscn @@ -1,10 +1,10 @@ -[gd_scene load_steps=7 format=2] +[gd_scene load_steps=9 format=2] [ext_resource path="res://water/Wave.gdshader" type="Shader" id=1] [ext_resource path="res://water/Water.gd" type="Script" id=2] [sub_resource type="PlaneMesh" id=9] -size = Vector2( 500, 500 ) +size = Vector2( 2000, 2000 ) subdivide_width = 500 subdivide_depth = 500 @@ -29,6 +29,14 @@ shader_param/foam_amount = 0.6 shader_param/murkiness = 4.0 shader_param/noise = SubResource( 18 ) +[sub_resource type="PlaneMesh" id=19] +size = Vector2( 10000, 10000 ) +subdivide_width = 100 +subdivide_depth = 100 + +[sub_resource type="PlaneMesh" id=20] +size = Vector2( 2000, 2000 ) + [node name="Water" type="Spatial"] [node name="MeshInstance" type="MeshInstance" parent="."] @@ -44,3 +52,11 @@ wave2_direction = Vector2( 1, 0.6 ) wave3_steepness = 0.25 wave3_wavelength = 18.0 wave3_direction = Vector2( 1, 1.3 ) + +[node name="CSGMesh" type="CSGMesh" parent="."] +mesh = SubResource( 19 ) +material = SubResource( 11 ) + +[node name="CSGMesh" type="CSGMesh" parent="CSGMesh"] +operation = 2 +mesh = SubResource( 20 ) |