Browse Source

Fixing small bug with postprocess textures

David Catuhe 11 years ago
parent
commit
a6a7c16a62
1 changed files with 1 additions and 1 deletions
  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) {