From 828016be6a5e42f5ed950a82bc195830b7542cbd Mon Sep 17 00:00:00 2001 From: Victor Turgeon Date: Sun, 11 Jun 2023 13:00:56 -0400 Subject: [PATCH] slower water --- levels/test_level.tscn | 4 ++-- shaders/water.gdshader | 2 +- shaders/water_plane.tscn | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/levels/test_level.tscn b/levels/test_level.tscn index 51422d0..42ea0ef 100644 --- a/levels/test_level.tscn +++ b/levels/test_level.tscn @@ -1,9 +1,9 @@ [gd_scene load_steps=8 format=3 uid="uid://cbs0x36e3ranm"] -[ext_resource type="MeshLibrary" uid="uid://bo7ir5us230sa" path="res://assets/tilesets/tileset.tres" id="1_l447d"] +[ext_resource type="MeshLibrary" uid="uid://dwo1m72yajrb1" path="res://assets/tilesets/tileset.tres" id="1_l447d"] [ext_resource type="PackedScene" uid="uid://b5gb5paiupum" path="res://player/player.tscn" id="2_ojnju"] [ext_resource type="PackedScene" uid="uid://2pw0p13lcklv" path="res://buildings/kash_buildings/factory.tscn" id="3_08gdj"] -[ext_resource type="AudioStream" uid="uid://bba7tiqty57ek" path="res://music/jazz.ogg" id="3_brvx4"] +[ext_resource type="AudioStream" uid="uid://byo1w5vecks0m" path="res://music/jazz.ogg" id="3_brvx4"] [ext_resource type="PackedScene" uid="uid://c2casdi4d2o3j" path="res://shaders/water_plane.tscn" id="3_ga7wg"] [sub_resource type="Environment" id="Environment_lo4sd"] diff --git a/shaders/water.gdshader b/shaders/water.gdshader index 91d4c35..cbb0937 100644 --- a/shaders/water.gdshader +++ b/shaders/water.gdshader @@ -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); diff --git a/shaders/water_plane.tscn b/shaders/water_plane.tscn index 9d8feb9..317e495 100644 --- a/shaders/water_plane.tscn +++ b/shaders/water_plane.tscn @@ -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")