abyss WIP
This commit is contained in:
parent
ac3248a912
commit
4120529a53
12 changed files with 311 additions and 10 deletions
12
scripts/water_ripple.gdshader
Normal file
12
scripts/water_ripple.gdshader
Normal 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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue