quake2ts 0.0.63 → 0.0.64
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/apps/viewer/dist/browser/index.global.js +1 -1
- package/apps/viewer/dist/browser/index.global.js.map +1 -1
- package/apps/viewer/dist/cjs/index.cjs.map +1 -1
- package/apps/viewer/dist/esm/index.js.map +1 -1
- package/apps/viewer/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/packages/client/dist/browser/index.global.js.map +1 -1
- package/packages/client/dist/cjs/index.cjs.map +1 -1
- package/packages/client/dist/esm/index.js.map +1 -1
- package/packages/client/dist/tsconfig.tsbuildinfo +1 -1
- package/packages/engine/dist/browser/index.global.js +2 -2
- package/packages/engine/dist/browser/index.global.js.map +1 -1
- package/packages/engine/dist/cjs/index.cjs +5 -4
- package/packages/engine/dist/cjs/index.cjs.map +1 -1
- package/packages/engine/dist/esm/index.js +5 -4
- package/packages/engine/dist/esm/index.js.map +1 -1
- package/packages/engine/dist/tsconfig.tsbuildinfo +1 -1
- package/packages/engine/dist/types/render/bspPipeline.d.ts.map +1 -1
- package/packages/engine/dist/types/render/frame.d.ts +34 -4
- package/packages/engine/dist/types/render/frame.d.ts.map +1 -1
- package/packages/engine/dist/types/render/skybox.d.ts +2 -1
- package/packages/engine/dist/types/render/skybox.d.ts.map +1 -1
- package/packages/game/dist/tsconfig.tsbuildinfo +1 -1
|
@@ -3601,7 +3601,7 @@ var BspSurfacePipeline = class {
|
|
|
3601
3601
|
styleIndices = DEFAULT_STYLE_INDICES,
|
|
3602
3602
|
styleValues = [],
|
|
3603
3603
|
diffuseSampler = 0,
|
|
3604
|
-
lightmapSampler
|
|
3604
|
+
lightmapSampler,
|
|
3605
3605
|
surfaceFlags = SURF_NONE,
|
|
3606
3606
|
timeSeconds = 0
|
|
3607
3607
|
} = options;
|
|
@@ -3613,11 +3613,12 @@ var BspSurfacePipeline = class {
|
|
|
3613
3613
|
this.gl.uniform2f(this.uniformLmScroll, state.flowOffset[0], state.flowOffset[1]);
|
|
3614
3614
|
this.gl.uniform4fv(this.uniformLightStyles, styles);
|
|
3615
3615
|
this.gl.uniform1f(this.uniformAlpha, state.alpha);
|
|
3616
|
-
|
|
3616
|
+
const applyLightmap = !state.sky && lightmapSampler !== void 0;
|
|
3617
|
+
this.gl.uniform1i(this.uniformApplyLightmap, applyLightmap ? 1 : 0);
|
|
3617
3618
|
this.gl.uniform1i(this.uniformWarp, state.warp ? 1 : 0);
|
|
3618
3619
|
this.gl.uniform1f(this.uniformTime, timeSeconds);
|
|
3619
3620
|
this.gl.uniform1i(this.uniformDiffuse, diffuseSampler);
|
|
3620
|
-
this.gl.uniform1i(this.uniformLightmap, lightmapSampler);
|
|
3621
|
+
this.gl.uniform1i(this.uniformLightmap, lightmapSampler ?? 0);
|
|
3621
3622
|
return state;
|
|
3622
3623
|
}
|
|
3623
3624
|
dispose() {
|
|
@@ -3823,7 +3824,7 @@ var SkyboxPipeline = class {
|
|
|
3823
3824
|
}
|
|
3824
3825
|
};
|
|
3825
3826
|
function removeViewTranslation(viewMatrix) {
|
|
3826
|
-
const noTranslation = viewMatrix
|
|
3827
|
+
const noTranslation = new Float32Array(viewMatrix);
|
|
3827
3828
|
noTranslation[12] = 0;
|
|
3828
3829
|
noTranslation[13] = 0;
|
|
3829
3830
|
noTranslation[14] = 0;
|