cirnogodot/VFEZ/Shaders/Effects/vfez_alpha_cutoff.gdshaderinc
2025-03-09 15:58:26 +01:00

15 lines
No EOL
252 B
Text

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;
}
}