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

glm::mix does not comply with GLSL specification #866

Closed
UniQP opened this issue Feb 1, 2019 · 1 comment
Closed

glm::mix does not comply with GLSL specification #866

UniQP opened this issue Feb 1, 2019 · 1 comment
Assignees
Milestone

Comments

@UniQP
Copy link

UniQP commented Feb 1, 2019

The GLSL specification of mix(x, y, a) says

Returns the linear blend of x and y, i.e., x⋅(1−a) + y⋅a.

However, the current glm implementation uses

x + a⋅(y-x)

, which does not guarantee mix(x, y, 1) == y.

@Groovounet
Copy link
Member

This issue should be fixed in master branch for GLM 0.9.9.4 release.
Thanks for reporting!

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

No branches or pull requests

2 participants