engine
engine copied to clipboard
`camera.aspectRatio` is illegal in some cases
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);