Files
SDL3CPlusPlus/packages/materialx/libraries/stdlib/genglsl/mx_smoothstep_float.glsl
2026-01-09 23:21:38 +00:00

10 lines
225 B
GLSL
Executable File

void mx_smoothstep_float(float val, float low, float high, out float result)
{
if (val <= low)
result = 0.0;
else if (val >= high)
result = 1.0;
else
result = smoothstep(low, high, val);
}