mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-07-08 16:21:15 +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_alpha_cutoff.gdshaderinc
Normal file
15
VFEZ/Shaders/Effects/vfez_alpha_cutoff.gdshaderinc
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
group_uniforms alpha_cutoff;
|
||||
uniform float alpha_cuttof_value: hint_range(0.001, 1.) = 0.5;
|
||||
group_uniforms;
|
||||
|
||||
float alpha_cutoff(float alpha)
|
||||
{
|
||||
if (((1. - alpha_cuttof_value) - (1. - alpha) - 0.01) < 0.)
|
||||
{
|
||||
return 0.;
|
||||
}
|
||||
else
|
||||
{
|
||||
return alpha;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue