8000 `camera.aspectRatio` is illegal in some cases · Issue #2324 · galacean/engine · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
camera.aspectRatio is illegal in some cases #2324
Open
@cptbtptpbcptdtptp

Description

@cptbtptpbcptdtptp

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);

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0