@quake2ts/engine 0.0.782 → 0.0.787

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -6206,7 +6206,7 @@ var Md2Pipeline = class {
6206
6206
  }
6207
6207
  };
6208
6208
  var Camera = class {
6209
- constructor() {
6209
+ constructor(width, height) {
6210
6210
  this._position = vec3.create();
6211
6211
  this._angles = vec3.create();
6212
6212
  // pitch, yaw, roll
@@ -6222,6 +6222,9 @@ var Camera = class {
6222
6222
  this._projectionMatrix = mat4.create();
6223
6223
  this._viewProjectionMatrix = mat4.create();
6224
6224
  this._dirty = true;
6225
+ if (width !== void 0 && height !== void 0 && height > 0) {
6226
+ this._aspect = width / height;
6227
+ }
6225
6228
  }
6226
6229
  get position() {
6227
6230
  return this._position;