mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-07-08 01:21:15 +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_alpha_flicker.gdshaderinc
Normal file
13
VFEZ/Shaders/Effects/vfez_alpha_flicker.gdshaderinc
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
group_uniforms alpha_flicker;
|
||||
uniform float alpha_flicker_percent: hint_range(0., 1.) = 0.05;
|
||||
uniform float alpha_flicker_frequency: hint_range(0., 5.) = 0.2;
|
||||
uniform float alpha_flicker_value: hint_range(0.0, 1.0) = 0.;
|
||||
group_uniforms;
|
||||
|
||||
float alpha_flicker(float alpha)
|
||||
{
|
||||
alpha *= clamp(
|
||||
alpha * step(fract(0.05 + TIME * alpha_flicker_frequency),
|
||||
1. - alpha_flicker_percent) + alpha_flicker_value, 0., 1.);
|
||||
return alpha;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue