abyss WIP

This commit is contained in:
Haze Weathers 2023-02-06 15:33:18 -05:00
parent ac3248a912
commit 4120529a53
12 changed files with 311 additions and 10 deletions

View file

@ -0,0 +1,12 @@
shader_type canvas_item;
uniform float offset = 1.5;
uniform float speed = 0.5;
uniform float waves = 2.0;
uniform float color_amount = 0.2;
void fragment() {
vec2 uv = SCREEN_UV;
uv.x += floor(sin(TIME * speed - SCREEN_UV.y * waves) * offset) * SCREEN_PIXEL_SIZE.x;
COLOR = mix(texture(SCREEN_TEXTURE, uv), COLOR, color_amount);
}