|
@@ -8289,7 +8289,9 @@ var BABYLON;
|
|
Engine.prototype.restoreDefaultFramebuffer = function () {
|
|
Engine.prototype.restoreDefaultFramebuffer = function () {
|
|
this._currentRenderTarget = null;
|
|
this._currentRenderTarget = null;
|
|
this.bindUnboundFramebuffer(null);
|
|
this.bindUnboundFramebuffer(null);
|
|
- this.setViewport(this._cachedViewport);
|
|
|
|
|
|
+ if (this._cachedViewport) {
|
|
|
|
+ this.setViewport(this._cachedViewport);
|
|
|
|
+ }
|
|
this.wipeCaches();
|
|
this.wipeCaches();
|
|
};
|
|
};
|
|
// UBOs
|
|
// UBOs
|
|
@@ -44098,6 +44100,9 @@ var BABYLON;
|
|
};
|
|
};
|
|
PostProcess.prototype.updateEffect = function (defines, uniforms, samplers, indexParameters, onCompiled, onError) {
|
|
PostProcess.prototype.updateEffect = function (defines, uniforms, samplers, indexParameters, onCompiled, onError) {
|
|
this._effect = this._engine.createEffect({ vertex: this._vertexUrl, fragment: this._fragmentUrl }, ["position"], uniforms || this._parameters, samplers || this._samplers, defines !== undefined ? defines : "", null, onCompiled, onError, indexParameters || this._indexParameters);
|
|
this._effect = this._engine.createEffect({ vertex: this._vertexUrl, fragment: this._fragmentUrl }, ["position"], uniforms || this._parameters, samplers || this._samplers, defines !== undefined ? defines : "", null, onCompiled, onError, indexParameters || this._indexParameters);
|
|
|
|
+ if (onCompiled && this._effect.isReady()) {
|
|
|
|
+ onCompiled(this._effect);
|
|
|
|
+ }
|
|
};
|
|
};
|
|
PostProcess.prototype.isReusable = function () {
|
|
PostProcess.prototype.isReusable = function () {
|
|
return this._reusable;
|
|
return this._reusable;
|
|
@@ -66852,7 +66857,6 @@ var BABYLON;
|
|
TextureTools.CreateResizedCopy = function (texture, width, height) {
|
|
TextureTools.CreateResizedCopy = function (texture, width, height) {
|
|
var rtt = new BABYLON.RenderTargetTexture('resized' + texture.name, { width: width, height: height }, scene, !texture.noMipmap, true, texture._texture.type, false, texture._samplingMode, false);
|
|
var rtt = new BABYLON.RenderTargetTexture('resized' + texture.name, { width: width, height: height }, scene, !texture.noMipmap, true, texture._texture.type, false, texture._samplingMode, false);
|
|
var scene = texture.getScene();
|
|
var scene = texture.getScene();
|
|
- rtt.anisotropicFilteringLevel = texture.anisotropicFilteringLevel;
|
|
|
|
rtt.wrapU = texture.wrapU;
|
|
rtt.wrapU = texture.wrapU;
|
|
rtt.wrapV = texture.wrapV;
|
|
rtt.wrapV = texture.wrapV;
|
|
rtt.uOffset = texture.uOffset;
|
|
rtt.uOffset = texture.uOffset;
|
|
@@ -66873,6 +66877,7 @@ var BABYLON;
|
|
scene.postProcessManager.directRender([passPostProcess], rtt.getInternalTexture());
|
|
scene.postProcessManager.directRender([passPostProcess], rtt.getInternalTexture());
|
|
scene.getEngine().restoreDefaultFramebuffer();
|
|
scene.getEngine().restoreDefaultFramebuffer();
|
|
rtt.disposeFramebufferObjects();
|
|
rtt.disposeFramebufferObjects();
|
|
|
|
+ passPostProcess.dispose();
|
|
});
|
|
});
|
|
return rtt;
|
|
return rtt;
|
|
};
|
|
};
|