slower water

This commit is contained in:
Victor Turgeon
2023-06-11 13:00:56 -04:00
parent e929b2500e
commit 828016be6a
3 changed files with 4 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ uniform sampler2D texture_normal2;
uniform sampler2D texture_image;
uniform vec2 wave_direction = vec2(2.0,0.0);
uniform vec2 wave_direction2 = vec2(0.0,1.0);
uniform float time_scale : hint_range(0.0, 0.2, 0.005) = 0.005;
uniform float time_scale : hint_range(0.0, 0.2, 0.005) = 0.0;
float fresnel(float amount, vec3 normal, vec3 view){
return pow((1.0 - clamp(dot(normalize(normal), normalize(view)),0.0,1.0)),amount);

View File

@@ -38,7 +38,7 @@ shader_parameter/metallic = 0.0
shader_parameter/roughness = 0.02
shader_parameter/wave_direction = Vector2(2, 0)
shader_parameter/wave_direction2 = Vector2(0, 1)
shader_parameter/time_scale = 0.025
shader_parameter/time_scale = 0.005
shader_parameter/texture_normal = SubResource("NoiseTexture2D_ntr7e")
shader_parameter/texture_normal2 = SubResource("NoiseTexture2D_wvpl0")
shader_parameter/texture_image = ExtResource("2_83coh")