-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Fix specification clarity of smoothstep
It was pointed out on Slack by Arnon Marcus that the spec's description of smoothstep was ambiguous about the behavior when edge0==edge1==x: does it return 0 or 1 here? The implementation returned 1, which I think is the "correct" behavior in the sense that when edge0==edge1, the results should match the step() function with that edge. * Fix the descriptions in the spec to match the implementation and what I think is the best behavior. * Also change paremter names edge0/edge1 to low/high, which I think is much more clearly self-documenting. Signed-off-by: Larry Gritz <[email protected]>
- Loading branch information
Showing
3 changed files
with
67 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters