mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-07-08 20:51:24 +00:00
Added VFEZ
This commit is contained in:
parent
273efaef03
commit
6d572503cb
59 changed files with 5796 additions and 0 deletions
13
VFEZ/Shaders/Effects/vfez_uv_zoom.gdshaderinc
Normal file
13
VFEZ/Shaders/Effects/vfez_uv_zoom.gdshaderinc
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
group_uniforms uv_zoom;
|
||||
uniform vec2 uv_zoom_center = vec2(0.5);
|
||||
uniform float uv_zoom_amount: hint_range(0.1, 5.) = 0.5;
|
||||
group_uniforms;
|
||||
|
||||
vec2 uv_zoom(vec2 uv, vec2 main_texture_scale)
|
||||
{
|
||||
vec2 norm_center = uv_zoom_center / main_texture_scale;
|
||||
uv -= norm_center;
|
||||
uv = uv * uv_zoom_amount;
|
||||
uv += norm_center;
|
||||
return uv;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue