|
@@ -334,6 +334,7 @@ module BABYLON {
|
|
|
this._mainTexture.updateSamplingMode(Texture.BILINEAR_SAMPLINGMODE);
|
|
|
this._mainTexture.renderParticles = false;
|
|
|
this._mainTexture.renderList = null;
|
|
|
+ this._mainTexture.ignoreCameraViewport = true;
|
|
|
|
|
|
this._blurTexture = new RenderTargetTexture("HighlightLayerBlurRTT",
|
|
|
{
|
|
@@ -349,6 +350,7 @@ module BABYLON {
|
|
|
this._blurTexture.anisotropicFilteringLevel = 16;
|
|
|
this._blurTexture.updateSamplingMode(Texture.TRILINEAR_SAMPLINGMODE);
|
|
|
this._blurTexture.renderParticles = false;
|
|
|
+ this._blurTexture.ignoreCameraViewport = true;
|
|
|
|
|
|
this._downSamplePostprocess = new PassPostProcess("HighlightLayerPPP", this._options.blurTextureSizeRatio,
|
|
|
null, Texture.BILINEAR_SAMPLINGMODE, this._scene.getEngine());
|
|
@@ -388,7 +390,7 @@ module BABYLON {
|
|
|
|
|
|
this._scene.postProcessManager.directRender(
|
|
|
[this._downSamplePostprocess, this._horizontalBlurPostprocess, this._verticalBlurPostprocess],
|
|
|
- this._blurTexture.getInternalTexture());
|
|
|
+ this._blurTexture.getInternalTexture(), true);
|
|
|
|
|
|
this.onAfterBlurObservable.notifyObservers(this);
|
|
|
});
|
|
@@ -774,8 +776,8 @@ module BABYLON {
|
|
|
this._mainTextureDesiredSize.height = this._options.mainTextureFixedSize;
|
|
|
}
|
|
|
else {
|
|
|
- this._mainTextureDesiredSize.width = this._engine.getRenderingCanvas().width * this._options.mainTextureRatio;
|
|
|
- this._mainTextureDesiredSize.height = this._engine.getRenderingCanvas().height * this._options.mainTextureRatio;
|
|
|
+ this._mainTextureDesiredSize.width = this._engine.getRenderWidth() * this._options.mainTextureRatio;
|
|
|
+ this._mainTextureDesiredSize.height = this._engine.getRenderHeight() * this._options.mainTextureRatio;
|
|
|
|
|
|
this._mainTextureDesiredSize.width = this._engine.needPOTTextures ? Tools.GetExponentOfTwo(this._mainTextureDesiredSize.width, this._maxSize) : this._mainTextureDesiredSize.width;
|
|
|
this._mainTextureDesiredSize.height = this._engine.needPOTTextures ? Tools.GetExponentOfTwo(this._mainTextureDesiredSize.height, this._maxSize) : this._mainTextureDesiredSize.height;
|