engine icon indicating copy to clipboard operation
engine copied to clipboard

`camera.aspectRatio` is illegal in some cases

Open cptbtptpbcptdtptp opened this issue 6 months ago • 0 comments

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 avatar Aug 09 '24 03:08 cptbtptpbcptdtptp