summaryrefslogtreecommitdiffstats
path: root/water/Water.tscn
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-09-22 07:18:03 -0400
committerdusoleil <howcansocksbereal@gmail.com>2022-09-22 07:18:03 -0400
commitdf3557dc3b04b1fa2f399ea319d8810f37931035 (patch)
treeb9db26cbeff5ef5ea0079b87fff6f24c2dc4a463 /water/Water.tscn
parent12943209f25236a06f0a1c3ddcb62c83f7172827 (diff)
downloadgodot_wildjam_49-df3557dc3b04b1fa2f399ea319d8810f37931035.tar.gz
godot_wildjam_49-df3557dc3b04b1fa2f399ea319d8810f37931035.zip
Only update the time uniform for the shader each frame
Diffstat (limited to 'water/Water.tscn')
-rw-r--r--water/Water.tscn13
1 files changed, 8 insertions, 5 deletions
diff --git a/water/Water.tscn b/water/Water.tscn
index cdd22a7..0110acd 100644
--- a/water/Water.tscn
+++ b/water/Water.tscn
@@ -10,25 +10,28 @@ subdivide_depth = 500
[sub_resource type="OpenSimplexNoise" id=17]
-[sub_resource type="NoiseTexture" id=18]
+[sub_resource type="NoiseTexture" id=21]
seamless = true
as_normalmap = true
noise = SubResource( 17 )
[sub_resource type="ShaderMaterial" id=11]
shader = ExtResource( 1 )
-shader_param/wave1 = Quat( 0.25, 0.10472, 2.38732, 203.957 )
+shader_param/wave1 = Vector3( 0.25, 0.10472, 2.38732 )
shader_param/wave1_dir = Vector2( 1, 1 )
-shader_param/wave2 = Quat( 0.25, 0.202683, 1.23345, 146.603 )
+shader_param/wave1_t = 0.0
+shader_param/wave2 = Vector3( 0.25, 0.202683, 1.23345 )
shader_param/wave2_dir = Vector2( 1, 0.6 )
-shader_param/wave3 = Quat( 0.25, 0.349066, 0.716197, 111.712 )
+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/murkiness = 4.0
shader_param/refraction_amount = 0.01
-shader_param/noise = SubResource( 18 )
+shader_param/noise = SubResource( 21 )
[node name="Water" type="Spatial"]