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
When transforming a plane with a matrix, the plane's normal is currently multiplied with the transform matrix itself. However, the transform matrix should be converted to normal matrix before multiplying with normal. This is the sandcastle's example(Notice the angle printed out on the console)
This also happens in the czm_transformPlane() glsl function
czm_transformPlane()
Another explanation from stack overflow: https://stackoverflow.com/questions/7685495/transforming-a-3d-plane-using-a-4x4-matrix
The text was updated successfully, but these errors were encountered:
Is this related to #8268 at all?
Sorry, something went wrong.
I think it is related as well since in the createPrimitiveModel() function, the normal is directly multiplied with the transform matrix instead of the normal matrix.
createPrimitiveModel()
Successfully merging a pull request may close this issue.
When transforming a plane with a matrix, the plane's normal is currently multiplied with the transform matrix itself. However, the transform matrix should be converted to normal matrix before multiplying with normal. This is the sandcastle's example(Notice the angle printed out on the console)
This also happens in the
czm_transformPlane()
glsl functionAnother explanation from stack overflow:
https://stackoverflow.com/questions/7685495/transforming-a-3d-plane-using-a-4x4-matrix
The text was updated successfully, but these errors were encountered: