You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But according to the OpenGL docs (and the documentation for the smoothstep function contained in the Book of Shaders) this function requires edge1 to be strictly greater than edge0. Being new to shaders, this confused me and I had to mess around with it to figure out what was actually happening.
The text was updated successfully, but these errors were encountered:
alextenb
changed the title
Chapter 05 undefined use of smoothstep
Chapter 05 non-standard use of smoothstep
Mar 29, 2024
Hi, the first code example in Chapter 05 contains a usage of smoothstep which should produce undefined output according to the OpenGL docs.
It looks like, on my hardware, the result ends up being identical to:
But according to the OpenGL docs (and the documentation for the smoothstep function contained in the Book of Shaders) this function requires
edge1
to be strictly greater thanedge0
. Being new to shaders, this confused me and I had to mess around with it to figure out what was actually happening.The text was updated successfully, but these errors were encountered: