scene manager :)
This commit is contained in:
parent
088ab0b944
commit
1a971bb379
5 changed files with 176 additions and 2 deletions
15
assets/shaders/test_filter.gdshader
Normal file
15
assets/shaders/test_filter.gdshader
Normal 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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue