-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Matrix multiply is not commutative #472
Comments
Which version of Shader Minifier are you using? I think we fixed some instances of the bug. Can you share the line of code that triggers the bug? |
My guess is, it's this rewrite: |
Damn, thats a quick response! I had edited my post having looked atthe source code. |
No, but commenting out lines 198-200 of rewriter.fs should fix it |
yep, that works. cheers |
Good point, we need a The version number is included in (some of) the generated outputs, but you can also run |
you cannot swap order of multiplies for matrices; it changes the meaning.
I have vec4 v = mat33 * (vec3 * float) which is transformed into:
vec4 v = (vec3 * float) * mat33
Is rewriter.fs:240 the problem?
The text was updated successfully, but these errors were encountered: