|
@@ -104,9 +104,8 @@
|
|
/** The Friendly of the effect in the scene */
|
|
/** The Friendly of the effect in the scene */
|
|
public name: string,
|
|
public name: string,
|
|
scene: Scene) {
|
|
scene: Scene) {
|
|
- var engine = scene.getEngine();
|
|
|
|
- this._engine = engine;
|
|
|
|
this._scene = scene || Engine.LastCreatedScene;
|
|
this._scene = scene || Engine.LastCreatedScene;
|
|
|
|
+ this._engine = scene.getEngine();
|
|
this._maxSize = this._engine.getCaps().maxTextureSize;
|
|
this._maxSize = this._engine.getCaps().maxTextureSize;
|
|
this._scene.effectLayers.push(this);
|
|
this._scene.effectLayers.push(this);
|
|
|
|
|
|
@@ -431,9 +430,6 @@
|
|
// Blends the map on the main canvas.
|
|
// Blends the map on the main canvas.
|
|
this._internalRender(currentEffect);
|
|
this._internalRender(currentEffect);
|
|
|
|
|
|
- // Restore stencil state.
|
|
|
|
- (<any>engine)._stencilState.reset();
|
|
|
|
-
|
|
|
|
// Restore Alpha
|
|
// Restore Alpha
|
|
engine.setAlphaMode(previousAlphaMode);
|
|
engine.setAlphaMode(previousAlphaMode);
|
|
|
|
|