scene manager :)

This commit is contained in:
Haze Weathers 2025-03-02 05:34:09 -05:00
parent 088ab0b944
commit 1a971bb379
5 changed files with 176 additions and 2 deletions

View file

@ -0,0 +1,15 @@
shader_type canvas_item;
uniform sampler2D SCREEN_TEXTURE : hint_screen_texture;
vec2 warp(vec2 uv) {
return vec2(
uv.x + sin(TIME + uv.y * 50.0) * 0.005,
uv.y
);
}
void fragment() {
vec2 uv = warp(SCREEN_UV);
COLOR = texture(SCREEN_TEXTURE, uv);
}