You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this matrix will transform a vector [x, y, z, 1] to [x, y, z - (1 / d), 1] instead of [x, y, z, 1 - (z / d)]
So, the "-1 / d" should be placed at m43 instead of m34.
The text was updated successfully, but these errors were encountered:
EcutDavid
changed the title
Perspective projection matrix seems wrong in the css-transforms-2 doc
[css-transforms-2]Perspective projection matrix seems wrong in the spec
Nov 28, 2017
Hi, thanks for the great work!
At https://drafts.csswg.org/css-transforms-2/#PerspectiveDefined
Giving that the order of matrix is [m11 m21 m31 m41 m12 ...]
And he perspective matrix is [1 0 0 0 0 1 0 0 0 0 1 0 0 0 -1/d 1]
I think this matrix will transform a vector [x, y, z, 1] to [x, y, z - (1 / d), 1] instead of [x, y, z, 1 - (z / d)]
So, the "-1 / d" should be placed at m43 instead of m34.
The text was updated successfully, but these errors were encountered: