mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 08:55:35 +00:00
Added VFEZ
This commit is contained in:
parent
273efaef03
commit
6d572503cb
59 changed files with 5796 additions and 0 deletions
18
VFEZ/Shaders/Effects/vfez_vertex_expand.gdshaderinc
Normal file
18
VFEZ/Shaders/Effects/vfez_vertex_expand.gdshaderinc
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
group_uniforms vertex_expand;
|
||||
uniform vec3 vertex_expand_center = vec3(0.);
|
||||
uniform bool vertex_expand_ignore_center_vertical = false;
|
||||
uniform float vertex_expand_amount: hint_range(0.0, 10.) = 0.5;
|
||||
group_uniforms;
|
||||
|
||||
vec3 vertex_expand(
|
||||
vec3 vertex)
|
||||
{
|
||||
vec3 final_expand_center = vertex_expand_center;
|
||||
if (vertex_expand_ignore_center_vertical)
|
||||
{
|
||||
final_expand_center.z = vertex.z;
|
||||
}
|
||||
vec3 expand_dir = normalize(vertex - final_expand_center);
|
||||
vertex += expand_dir * vertex_expand_amount;
|
||||
return vertex;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue