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

camera.aspectRatio is illegal in some cases #2324

Open
cptbtptpbcptdtptp opened this issue Aug 9, 2024 · 0 comments
Open

camera.aspectRatio is illegal in some cases #2324

cptbtptpbcptdtptp opened this issue Aug 9, 2024 · 0 comments
Assignees
Labels
low priority Low priority issue

Comments

@cptbtptpbcptdtptp
Copy link
Collaborator

If you set the camera.viewport to (x, y, width, 0), the camera.aspectRation is NaN, and the camera.projectionMatrix is ​​also illegal.

camera.viewport.set(x, y, width, 0);
console.log('aspectRation', camera.aspectRation);
@cptbtptpbcptdtptp cptbtptpbcptdtptp self-assigned this Aug 9, 2024
@cptbtptpbcptdtptp cptbtptpbcptdtptp added the low priority Low priority issue label Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low priority Low priority issue
Projects
None yet
Development

No branches or pull requests

1 participant