summaryrefslogtreecommitdiffstats
path: root/Main.tscn
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-09-12 20:40:16 -0400
committerdusoleil <howcansocksbereal@gmail.com>2022-09-12 20:40:16 -0400
commit5dbc9c05c1ebd33e37315c096d2c9e1c6b96a8f2 (patch)
tree69d854f59caa94661eb621f274545170b4521d36 /Main.tscn
parent9a6b5ec01961c6ab3f13f72ff4ec4545c896d151 (diff)
downloadgodot_wildjam_49-5dbc9c05c1ebd33e37315c096d2c9e1c6b96a8f2.tar.gz
godot_wildjam_49-5dbc9c05c1ebd33e37315c096d2c9e1c6b96a8f2.zip
Add gertsner wave shader
Diffstat (limited to 'Main.tscn')
-rw-r--r--Main.tscn41
1 files changed, 34 insertions, 7 deletions
diff --git a/Main.tscn b/Main.tscn
index dc3d590..3a4787f 100644
--- a/Main.tscn
+++ b/Main.tscn
@@ -1,7 +1,9 @@
-[gd_scene load_steps=14 format=2]
+[gd_scene load_steps=18 format=2]
[ext_resource path="res://character/fps_controller/fps_controller.tscn" type="PackedScene" id=1]
[ext_resource path="res://icon.png" type="Texture" id=2]
+[ext_resource path="res://Water.gd" type="Script" id=5]
+[ext_resource path="res://Wave.gdshader" type="Shader" id=7]
[sub_resource type="BoxShape" id=1]
extents = Vector3( 5, 0.5, 5 )
@@ -18,11 +20,26 @@ size = Vector2( 500, 500 )
subdivide_width = 500
subdivide_depth = 500
-[sub_resource type="SpatialMaterial" id=22]
-flags_transparent = true
-params_cull_mode = 2
-params_depth_draw_mode = 1
-albedo_color = Color( 0.0509804, 0.792157, 0.807843, 0.67451 )
+[sub_resource type="OpenSimplexNoise" id=17]
+
+[sub_resource type="NoiseTexture" id=18]
+seamless = true
+as_normalmap = true
+noise = SubResource( 17 )
+
+[sub_resource type="ShaderMaterial" id=11]
+shader = ExtResource( 7 )
+shader_param/wave1 = Quat( 0.25, 0.10472, 2.38732, 1080.08 )
+shader_param/wave1_dir = Vector2( 1, 1 )
+shader_param/wave2 = Quat( 0.25, 0.202683, 1.23345, 776.359 )
+shader_param/wave2_dir = Vector2( 1, 0.6 )
+shader_param/wave3 = Quat( 0.25, 0.349066, 0.716197, 591.586 )
+shader_param/wave3_dir = Vector2( 1, 1.3 )
+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/noise = SubResource( 18 )
[sub_resource type="BoxShape" id=19]
extents = Vector3( 500, 1, 500 )
@@ -66,7 +83,17 @@ transform = Transform( 0.863334, 0.0994421, -0.494738, 0, 0.980392, 0.197058, 0.
[node name="Water" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00538254, -1.02502, 0.0534515 )
mesh = SubResource( 9 )
-material/0 = SubResource( 22 )
+material/0 = SubResource( 11 )
+script = ExtResource( 5 )
+wave1_steepness = 0.25
+wave1_wavelength = 60.0
+wave1_direction = Vector2( 1, 1 )
+wave2_steepness = 0.25
+wave2_wavelength = 31.0
+wave2_direction = Vector2( 1, 0.6 )
+wave3_steepness = 0.25
+wave3_wavelength = 18.0
+wave3_direction = Vector2( 1, 1.3 )
[node name="Ground" type="StaticBody" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -10, 0 )