@awayjs/scene 0.13.307 → 0.13.308

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- console.debug('AwayJS - Scene - 0.13.307');
1
+ console.debug('AwayJS - Scene - 0.13.308');
2
2
  export { Timeline } from './lib/base/Timeline';
3
3
  export { ControllerBase } from './lib/controllers/ControllerBase';
4
4
  export { FirstPersonController } from './lib/controllers/FirstPersonController';
@@ -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) || this._lastUsedFill === null;
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
@@ -1,4 +1,4 @@
1
- console.debug('AwayJS - Scene - 0.13.307');
1
+ console.debug('AwayJS - Scene - 0.13.308');
2
2
 
3
3
  export { IDisplayObjectAdapter } from './lib/adapters/IDisplayObjectAdapter';
4
4
  export { IMovieClipAdapter } from './lib/adapters/IMovieClipAdapter';
@@ -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) || this._lastUsedFill === null;
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awayjs/scene",
3
- "version": "0.13.307",
3
+ "version": "0.13.308",
4
4
  "description": "AwayJS scene classes",
5
5
  "main": "bundle/awayjs-scene.umd.js",
6
6
  "module": "dist/index.js",