mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-07-09 14:41:16 +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_handrawn.gdshaderinc
Normal file
15
VFEZ/Shaders/Effects/vfez_uv_handrawn.gdshaderinc
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
group_uniforms uv_handrawn;
|
||||
uniform float uv_handrawn_amount: hint_range(0.0, 40.0) = 10.;
|
||||
uniform float uv_handrawn_speed: hint_range(0.0, 30.0) = 5.;
|
||||
group_uniforms;
|
||||
|
||||
vec2 uv_handrawn(vec2 uv)
|
||||
{
|
||||
vec2 handrawnUV = uv;
|
||||
float handrawn_speed =
|
||||
floor(TIME * 20. * uv_handrawn_speed);
|
||||
handrawnUV.x = sin((handrawnUV.x * uv_handrawn_amount + handrawn_speed / 2.) * 4.);
|
||||
handrawnUV.y = sin((handrawnUV.y * uv_handrawn_amount + handrawn_speed / 2.) * 4.);
|
||||
uv = mix(uv, uv + handrawnUV, 0.0005 * uv_handrawn_amount);
|
||||
return uv;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue