@awayjs/scene 0.13.307 → 0.13.309
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/bundle/awayjs-scene.umd.js +2 -2
- package/bundle/awayjs-scene.umd.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/display/MorphSprite.js +1 -1
- package/dist/lib/image/SceneImage2D.js +2 -2
- package/index.ts +1 -1
- package/lib/display/MorphSprite.ts +1 -1
- package/lib/image/SceneImage2D.ts +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
console.debug('AwayJS - Scene - 0.13.
|
|
1
|
+
console.debug('AwayJS - Scene - 0.13.309');
|
|
2
2
|
export { Timeline } from './lib/base/Timeline';
|
|
3
3
|
export { ControllerBase } from './lib/controllers/ControllerBase';
|
|
4
4
|
export { FirstPersonController } from './lib/controllers/FirstPersonController';
|
|
@@ -217,7 +217,7 @@ var MorphSprite = /** @class */ (function (_super) {
|
|
|
217
217
|
var endPath = destination.end[i];
|
|
218
218
|
this._blendStyle(startPath, endPath, newPath, ratio);
|
|
219
219
|
this._blendContours(startPath, endPath, newPath, ratio);
|
|
220
|
-
destination.add_queued_path(newPath);
|
|
220
|
+
destination.add_queued_path(newPath, true);
|
|
221
221
|
}
|
|
222
222
|
/**
|
|
223
223
|
* call internal endFill, because regular endFill not run shape builder
|
|
@@ -443,7 +443,7 @@ var SceneImage2D = /** @class */ (function (_super) {
|
|
|
443
443
|
var stage = this._stage;
|
|
444
444
|
var mappedBlend = SceneImage2D._mapSupportedBlendMode(blendMode);
|
|
445
445
|
var supportNativeBlend = !blendMode || mappedBlend !== BlendMode.LAYER || blendMode == BlendMode.LAYER;
|
|
446
|
-
var useTmp = (!supportNativeBlend || this === source)
|
|
446
|
+
var useTmp = (!supportNativeBlend || this === source);
|
|
447
447
|
var target = useTmp ?
|
|
448
448
|
stage.filterManager.popTemp(this.width, this.height, false)
|
|
449
449
|
: this;
|
|
@@ -508,7 +508,7 @@ var SceneImage2D = /** @class */ (function (_super) {
|
|
|
508
508
|
var target = this;
|
|
509
509
|
// we should run compositor when blendMode !== LAYER (default)
|
|
510
510
|
// or when we use MSAA + fill is not flat.
|
|
511
|
-
var useBlend = blendMode !== BlendMode.LAYER || this._lastUsedFill === null;
|
|
511
|
+
var useBlend = blendMode !== BlendMode.LAYER || (this._lastUsedFill === null && nativeMSAA);
|
|
512
512
|
var useTemp = useBlend || nativeMSAA;
|
|
513
513
|
// lazy filling
|
|
514
514
|
// we require fill image with initial color, because we not doing this immediate
|
package/index.ts
CHANGED
|
@@ -308,7 +308,7 @@ export class MorphSprite extends Sprite {
|
|
|
308
308
|
this._blendStyle(startPath, endPath, newPath, ratio);
|
|
309
309
|
this._blendContours(startPath, endPath, newPath, ratio);
|
|
310
310
|
|
|
311
|
-
destination.add_queued_path(newPath);
|
|
311
|
+
destination.add_queued_path(newPath, true);
|
|
312
312
|
}
|
|
313
313
|
|
|
314
314
|
/**
|
|
@@ -674,7 +674,7 @@ export class SceneImage2D extends BitmapImage2D {
|
|
|
674
674
|
const stage = this._stage;
|
|
675
675
|
const mappedBlend = SceneImage2D._mapSupportedBlendMode(blendMode);
|
|
676
676
|
const supportNativeBlend = !blendMode || mappedBlend !== BlendMode.LAYER || blendMode == BlendMode.LAYER;
|
|
677
|
-
const useTmp = (!supportNativeBlend || this === source)
|
|
677
|
+
const useTmp = (!supportNativeBlend || this === source);
|
|
678
678
|
const target = useTmp ?
|
|
679
679
|
stage.filterManager.popTemp(this.width, this.height, false)
|
|
680
680
|
: this;
|
|
@@ -771,7 +771,7 @@ export class SceneImage2D extends BitmapImage2D {
|
|
|
771
771
|
|
|
772
772
|
// we should run compositor when blendMode !== LAYER (default)
|
|
773
773
|
// or when we use MSAA + fill is not flat.
|
|
774
|
-
const useBlend = blendMode !== BlendMode.LAYER || this._lastUsedFill === null;
|
|
774
|
+
const useBlend = blendMode !== BlendMode.LAYER || (this._lastUsedFill === null && nativeMSAA);
|
|
775
775
|
|
|
776
776
|
const useTemp = useBlend || nativeMSAA;
|
|
777
777
|
|