Open kevinms opened 3 years ago
I agree the "twisted" parameters should be explained in the book, the docs make it look like it's against the rules. However it's frequently used, seems like an inversion, similar to 1.0 - smoothstep(0.0, 0.02 ...)
. (Example)
The first code example in the Shaping functions chapter has the following plot function:
Clicking on smoothstep() takes you to the glossary which states:
Note the first argument (0.02) is greater the second (0.0), which appears to be undefined. All the Khronos API references I could find say the same. However, also note the example shader does render properly on my machine.