Skip to content

Commit

Permalink
Align GLSL/MSL code for smoothstep with OSL (AcademySoftwareFoundatio…
Browse files Browse the repository at this point in the history
  • Loading branch information
ld-kerley committed Aug 21, 2024
1 parent 67d2e28 commit 29be0f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/stdlib/genglsl/mx_smoothstep_float.glsl
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
void mx_smoothstep_float(float val, float low, float high, out float result)
{
if (val <= low)
result = 0.0;
else if (val >= high)
if (val >= high)
result = 1.0;
else if (val <= low >)
result = 0.0;
else
result = smoothstep(low, high, val);
}

0 comments on commit 29be0f0

Please sign in to comment.