浏览代码

Fixing small bug with postprocess textures

David Catuhe 11 年之前
父节点
当前提交
a6a7c16a62
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Babylon/babylon.engine.js

+ 1 - 1
Babylon/babylon.engine.js

@@ -928,7 +928,7 @@ var BABYLON = BABYLON || {};
     };
 
     BABYLON.Engine.prototype.setTextureFromPostProcess = function (channel, postProcess) {
-        this._bindTexture(channel, postProcess._texture);
+        this._bindTexture(channel, postProcess._textures.data[postProcess._currentRenderTextureInd]);
     };
 
     BABYLON.Engine.prototype.setTexture = function (channel, texture) {