mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 06:55:34 +00:00
15 lines
No EOL
252 B
Text
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;
|
|
}
|
|
} |