@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.
@@ -6207,7 +6207,7 @@ var Md2Pipeline = class {
6207
6207
  }
6208
6208
  };
6209
6209
  var Camera = class {
6210
- constructor() {
6210
+ constructor(width, height) {
6211
6211
  this._position = glMatrix.vec3.create();
6212
6212
  this._angles = glMatrix.vec3.create();
6213
6213
  // pitch, yaw, roll
@@ -6223,6 +6223,9 @@ var Camera = class {
6223
6223
  this._projectionMatrix = glMatrix.mat4.create();
6224
6224
  this._viewProjectionMatrix = glMatrix.mat4.create();
6225
6225
  this._dirty = true;
6226
+ if (width !== void 0 && height !== void 0 && height > 0) {
6227
+ this._aspect = width / height;
6228
+ }
6226
6229
  }
6227
6230
  get position() {
6228
6231
  return this._position;