mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-24 21:55:09 +00:00
10 lines
225 B
GLSL
Executable File
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);
|
|
}
|