@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/browser/index.global.js +1 -1
- package/dist/browser/index.global.js.map +1 -1
- package/dist/cjs/index.cjs +4 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +4 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/render/camera.d.ts +1 -0
- package/dist/types/render/camera.d.ts.map +1 -1
- package/dist/types/render/webgpu/frame.d.ts +24 -1
- package/dist/types/render/webgpu/frame.d.ts.map +1 -1
- package/dist/types/render/webgpu/pipelines/bspPipeline.d.ts +3 -0
- package/dist/types/render/webgpu/pipelines/bspPipeline.d.ts.map +1 -1
- package/dist/types/render/webgpu/pipelines/skybox.d.ts +1 -0
- package/dist/types/render/webgpu/pipelines/skybox.d.ts.map +1 -1
- package/dist/types/render/webgpu/renderer.d.ts +4 -2
- package/dist/types/render/webgpu/renderer.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/cjs/index.cjs
CHANGED
|
@@ -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;
|