@woosh/meep-engine 2.85.1 → 2.85.2
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/build/meep.module.js
CHANGED
|
@@ -89385,6 +89385,7 @@ class GraphicsEngine {
|
|
|
89385
89385
|
return intersectObject;
|
|
89386
89386
|
})();
|
|
89387
89387
|
}
|
|
89388
|
+
|
|
89388
89389
|
/**
|
|
89389
89390
|
*
|
|
89390
89391
|
* @returns {MaterialManager}
|
|
@@ -89468,7 +89469,7 @@ class GraphicsEngine {
|
|
|
89468
89469
|
|
|
89469
89470
|
start() {
|
|
89470
89471
|
const canvas = document.createElement("canvas");
|
|
89471
|
-
const context = canvas.getContext("webgl2", {antialias: false});
|
|
89472
|
+
const context = canvas.getContext("webgl2", { antialias: false });
|
|
89472
89473
|
|
|
89473
89474
|
const rendererParameters = {
|
|
89474
89475
|
antialias: true,
|
|
@@ -89665,6 +89666,10 @@ class GraphicsEngine {
|
|
|
89665
89666
|
// TODO designate opaque output buffer
|
|
89666
89667
|
const frameBuffer = buffers.getById(StandardFrameBuffers.ColorAndDepth);
|
|
89667
89668
|
|
|
89669
|
+
if (frameBuffer === undefined) {
|
|
89670
|
+
throw new Error(`No color-depth frame buffer`);
|
|
89671
|
+
}
|
|
89672
|
+
|
|
89668
89673
|
renderTextureToScreenQuad(frameBuffer.renderTarget.texture, renderer);
|
|
89669
89674
|
|
|
89670
89675
|
this.on.postOpaquePass.send0();
|
|
@@ -103363,7 +103368,7 @@ class Engine {
|
|
|
103363
103368
|
try {
|
|
103364
103369
|
graphicsEngine.start();
|
|
103365
103370
|
} catch (e) {
|
|
103366
|
-
logger.
|
|
103371
|
+
logger.error(`Failed to start GraphicEngine: ${e}`);
|
|
103367
103372
|
}
|
|
103368
103373
|
|
|
103369
103374
|
} else {
|
package/package.json
CHANGED
package/src/engine/Engine.js
CHANGED
|
@@ -232,6 +232,7 @@ export class GraphicsEngine {
|
|
|
232
232
|
return intersectObject;
|
|
233
233
|
})();
|
|
234
234
|
}
|
|
235
|
+
|
|
235
236
|
/**
|
|
236
237
|
*
|
|
237
238
|
* @returns {MaterialManager}
|
|
@@ -315,7 +316,7 @@ export class GraphicsEngine {
|
|
|
315
316
|
|
|
316
317
|
start() {
|
|
317
318
|
const canvas = document.createElement("canvas");
|
|
318
|
-
const context = canvas.getContext("webgl2", {antialias: false});
|
|
319
|
+
const context = canvas.getContext("webgl2", { antialias: false });
|
|
319
320
|
|
|
320
321
|
const rendererParameters = {
|
|
321
322
|
antialias: true,
|
|
@@ -519,6 +520,10 @@ export class GraphicsEngine {
|
|
|
519
520
|
// TODO designate opaque output buffer
|
|
520
521
|
const frameBuffer = buffers.getById(StandardFrameBuffers.ColorAndDepth);
|
|
521
522
|
|
|
523
|
+
if (frameBuffer === undefined) {
|
|
524
|
+
throw new Error(`No color-depth frame buffer`);
|
|
525
|
+
}
|
|
526
|
+
|
|
522
527
|
renderTextureToScreenQuad(frameBuffer.renderTarget.texture, renderer);
|
|
523
528
|
|
|
524
529
|
this.on.postOpaquePass.send0();
|