cirnogodot/VFEZ/Shaders/Effects/vfez_alpha_cutoff.gdshaderinc

15 lines
252 B
Text
Raw Normal View History

2025-03-09 15:58:26 +01:00
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;
}
}