Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 >)
Comment thread
jstone-lucasfilm marked this conversation as resolved.
Outdated
result = 0.0;
else
result = smoothstep(low, high, val);
}