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

10 lines
225 B
Metal
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);
}