pixelscommander 7 年之前
父节点
当前提交
1488872dac
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Layer/babylon.highlightlayer.ts

+ 1 - 1
src/Layer/babylon.highlightlayer.ts

@@ -410,7 +410,7 @@
 
             if (this._options.threshold) {
                 const threshold = this._options.threshold;
-                this._thresholdPostProcess = new BABYLON.PostProcess("thresold", "highlightLayerThreshold", ["screenSize", "threshold"], null, 0.25, null, BABYLON.Texture.BILINEAR_SAMPLINGMODE, this._scene.getEngine());
+                this._thresholdPostProcess = new BABYLON.PostProcess("threshold", "highlightLayerThreshold", ["screenSize", "threshold"], null, 0.25, null, BABYLON.Texture.BILINEAR_SAMPLINGMODE, this._scene.getEngine());
                 this._thresholdPostProcess.onApplyObservable.add(function (effect) {
                     effect.setFloat("threshold", threshold);
                     effect.setFloat2("screenSize", blurTextureWidth, blurTextureHeight);