ソースを参照

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) {
     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) {
     BABYLON.Engine.prototype.setTexture = function (channel, texture) {