We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
glm_vec4_smoothstep incorrectly computes 't'. Per GLSL:
genFType t; t = clamp ((x - edge0) / (edge1 - edge0), 0, 1); return t * t * (3 - 2 * t);
Stepping through the function
glm_vec4 const sub0 = glm_vec4_sub(x, edge0); // (x - edge0) glm_vec4 const sub1 = glm_vec4_sub(edge1, edge0); // (edge1 - edge0) glm_vec4 const div0 = glm_vec4_sub(sub0, sub1); // (x - edge0) - (edge1 - edge0); should be divide glm_vec4 const clp0 = glm_vec4_clamp(div0, _mm_setzero_ps(), _mm_set1_ps(1.0f)); /// ...
The text was updated successfully, but these errors were encountered:
Fixed SIMD implementation #1222
320c108
b101e8f
Fixed SIMD implementation g-truc#1222
668b2a9
Revert "Fixed SIMD implementation g-truc#1222"
501e592
This reverts commit 668b2a9.
Successfully merging a pull request may close this issue.
glm_vec4_smoothstep incorrectly computes 't'. Per GLSL:
Stepping through the function
The text was updated successfully, but these errors were encountered: