Browse Source

Fixing small bug with postprocess textures

David Catuhe 11 năm trước cách đây
mục cha
commit
a6a7c16a62
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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) {