Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smoothstep documentation error? #85

Open
pdmeyer opened this issue Jun 8, 2020 · 2 comments
Open

smoothstep documentation error? #85

pdmeyer opened this issue Jun 8, 2020 · 2 comments

Comments

@pdmeyer
Copy link

pdmeyer commented Jun 8, 2020

hello! the document at http://docs.gl/el3/smoothstep says Results are undefined if edge0 ≥ edge1. i have been working with shaders in max/msp/jitter in GLSL #version 330 and find that if `edge0 > edge1', the result is not undefined, rather the behavior is simply inverted. i am not sure whether this is an error in your documentation or just an eccentricity/enhancement of cycling 74's implementation, but i figured i would report in nonetheless!

@Botondar
Copy link

Undefined behaviour means that it might work on a certain platform, it might not, vendors are free to implement UB however they want. If it works correctly on your machine, that's great, but you can't rely on it being correct on other hardware, because basically anything could happen.

@pdmeyer
Copy link
Author

pdmeyer commented Jun 12, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants