gaussianblur 特效

This commit is contained in:
yhh
2020-06-23 17:36:39 +08:00
parent 7399b9f5ca
commit d7385654ef
12 changed files with 91 additions and 57 deletions

View File

@@ -95,7 +95,12 @@ class Scene extends egret.DisplayObjectContainer {
}
public begin() {
SceneManager.stage.addChildAt(this, 0);
if (SceneManager.sceneTransition){
SceneManager.stage.addChildAt(this, SceneManager.stage.numChildren - 1);
}else{
SceneManager.stage.addChild(this);
}
if (this._renderers.length == 0) {
this.addRenderer(new DefaultRenderer());
console.warn("场景开始时没有渲染器 自动添加DefaultRenderer以保证能够正常渲染");
@@ -180,7 +185,7 @@ class Scene extends egret.DisplayObjectContainer {
let isEven = MathHelper.isEven(enabledCounter);
enabledCounter ++;
this._postProcessors[i].process(this);
this._postProcessors[i].process();
}
}
}

View File

@@ -91,7 +91,7 @@ class SceneManager {
*/
public static startSceneTransition<T extends SceneTransition>(sceneTransition: T): T {
if (this.sceneTransition) {
console.error("在前一个场景完成之前,不能开始一个新的场景转换。");
console.warn("在前一个场景完成之前,不能开始一个新的场景转换。");
return;
}