summaryrefslogtreecommitdiffstats
path: root/water/Water.tscn
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-09-22 20:31:35 -0400
committerdusoleil <howcansocksbereal@gmail.com>2022-09-22 20:31:35 -0400
commitd089c01a602964d2e3b4892e6b5e40c7bbbe725d (patch)
tree895be39111df185ebcc06172a456f29fbc372b56 /water/Water.tscn
parent4ac770d52cfc93563b66f25c64f59ca61f5f3dfb (diff)
downloadgodot_wildjam_49-d089c01a602964d2e3b4892e6b5e40c7bbbe725d.tar.gz
godot_wildjam_49-d089c01a602964d2e3b4892e6b5e40c7bbbe725d.zip
Rework sea foam
Diffstat (limited to 'water/Water.tscn')
-rw-r--r--water/Water.tscn11
1 files changed, 7 insertions, 4 deletions
diff --git a/water/Water.tscn b/water/Water.tscn
index 6b4c72b..b37340b 100644
--- a/water/Water.tscn
+++ b/water/Water.tscn
@@ -1,7 +1,8 @@
-[gd_scene load_steps=7 format=2]
+[gd_scene load_steps=8 format=2]
[ext_resource path="res://water/Wave.gdshader" type="Shader" id=1]
[ext_resource path="res://water/Water.gd" type="Script" id=2]
+[ext_resource path="res://water/foam_map.png" type="Texture" id=3]
[sub_resource type="PlaneMesh" id=9]
size = Vector2( 2000, 2000 )
@@ -26,11 +27,13 @@ shader_param/wave2_t = 0.0
shader_param/wave3 = Vector3( 0.25, 0.349066, 0.716197 )
shader_param/wave3_dir = Vector2( 1, 1.3 )
shader_param/wave3_t = 0.0
-shader_param/water_colour = Color( 0.694118, 0.945098, 0.941176, 0.368627 )
-shader_param/deep_water_colour = Color( 0.25098, 0.623529, 0.788235, 0.54902 )
-shader_param/foam_amount = 0.6
+shader_param/water_color = Color( 0.25098, 0.623529, 0.788235, 0.54902 )
+shader_param/foam_color = Color( 0.694118, 0.945098, 0.941176, 0.368627 )
+shader_param/foam_amount_edge = 2.0
+shader_param/foam_amount_crest = 4.0
shader_param/murkiness = 4.0
shader_param/refraction_amount = 0.01
+shader_param/foam_map = ExtResource( 3 )
shader_param/noise = SubResource( 21 )
[node name="Water" type="Spatial"]