Pārlūkot izejas kodu

Fixing small bug with postprocess textures

David Catuhe 11 gadi atpakaļ
vecāks
revīzija
a6a7c16a62
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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) {