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

Shaders: clarified method limitations #18317

Merged
merged 1 commit into from
Jan 7, 2020

Conversation

WestLangley
Copy link
Collaborator

inverseTransformDirection() only works in certain circumstances. The inline comment now makes that clear.

For the record, the method will also work if the matrix is a pure-rotation matrix with uniform-scale, but in our use case, the matrix is viewMatrix, which is orthogonal.

@Mugen87 Mugen87 added this to the r113 milestone Jan 7, 2020
@Mugen87 Mugen87 merged commit e027545 into mrdoob:dev Jan 7, 2020
@WestLangley WestLangley deleted the dev_common_glsl branch January 7, 2020 18:40
@mrdoob
Copy link
Owner

mrdoob commented Jan 8, 2020

Thanks!

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

Successfully merging this pull request may close these issues.

3 participants