mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-07-08 12:31:17 +00:00
Added VFEZ
This commit is contained in:
parent
273efaef03
commit
6d572503cb
59 changed files with 5796 additions and 0 deletions
15
VFEZ/Shaders/Effects/vfez_uv_wrap.gdshaderinc
Normal file
15
VFEZ/Shaders/Effects/vfez_uv_wrap.gdshaderinc
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
group_uniforms uv_wrap;
|
||||
uniform float uv_wrap_strength: hint_range(0.0, 0.1) = 0.025;
|
||||
uniform float uv_wrap_speed: hint_range(0.0, 25.) = 8;
|
||||
uniform float uv_wrap_scale: hint_range(0.05, 3.) = 0.5;
|
||||
group_uniforms;
|
||||
|
||||
vec2 uv_wrap(vec2 uv, vec2 main_texture_scale)
|
||||
{
|
||||
vec2 norm_uv = uv / main_texture_scale;
|
||||
float x_wrap = TIME * uv_wrap_speed + norm_uv.x * TAU / uv_wrap_scale;
|
||||
float y_wrap = TIME * uv_wrap_speed + norm_uv.y * TAU / uv_wrap_scale;
|
||||
vec2 wrap = vec2(sin(x_wrap), cos(y_wrap)) * uv_wrap_strength;
|
||||
uv += wrap;
|
||||
return uv;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue