From 97dd79339284b033774ac74a04dd4a255475261a Mon Sep 17 00:00:00 2001 From: Malfurious <m@lfurio.us> Date: Mon, 24 Apr 2023 07:50:00 -0400 Subject: Move Godot 3 project to a new subdirectory Signed-off-by: Malfurious <m@lfurio.us> --- custom_shaders/liquid.gdshader | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 custom_shaders/liquid.gdshader (limited to 'custom_shaders/liquid.gdshader') diff --git a/custom_shaders/liquid.gdshader b/custom_shaders/liquid.gdshader deleted file mode 100644 index 529f25c..0000000 --- a/custom_shaders/liquid.gdshader +++ /dev/null @@ -1,26 +0,0 @@ -shader_type spatial; - -//frag shader variables -uniform vec4 albedo : hint_color; -uniform float alpha : hint_range(0.0, 1.0); -uniform float normal_speed : hint_range(0.0, 1.0); -uniform float normal_map_scale : hint_range(0.0, 10.0); -uniform float roughness : hint_range(0.0, 1.0); -uniform sampler2D normal : hint_normal; - -//Vertex shader variables -uniform float wave_speed : hint_range(0.0, 10.0); -uniform float wave_height : hint_range(0.0, 10.0); - -void fragment() { - vec2 moving_uv = UV + (TIME * normal_speed); - - ALBEDO = albedo.rgb; - ALPHA = alpha; - ROUGHNESS = roughness; - NORMALMAP = texture(normal, moving_uv * normal_map_scale).xyz; -} - -void vertex() { - VERTEX.y = sin(TIME + VERTEX.x * wave_speed) * wave_height; -} \ No newline at end of file -- cgit v1.2.3