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
The GLSL specification of mix(x, y, a) says
mix(x, y, a)
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.
mix(x, y, 1) == y
The text was updated successfully, but these errors were encountered:
Fixed mix implementation to improve GLSL conformance #866
6b62e66
This issue should be fixed in master branch for GLM 0.9.9.4 release. Thanks for reporting!
Sorry, something went wrong.
Groovounet
No branches or pull requests
The GLSL specification of
mix(x, y, a)
saysHowever, the current glm implementation uses
, which does not guarantee
mix(x, y, 1) == y
.The text was updated successfully, but these errors were encountered: