瀏覽代碼

fix(mrt) : Fix wrong texture type test in multirendertarget.

pierre 7 年之前
父節點
當前提交
6b5df022e5
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/Materials/Textures/babylon.multiRenderTarget.ts

+ 3 - 3
src/Materials/Textures/babylon.multiRenderTarget.ts

@@ -63,13 +63,13 @@ module BABYLON {
             var samplingModes = [];
 
             for (var i = 0; i < count; i++) {
-                if (options.types && options.types[i]) {
+                if (options.types && options.types[i] !== undefined) {
                     types.push(options.types[i]);
                 } else {
                     types.push(Engine.TEXTURETYPE_FLOAT);
                 }
 
-                if (options.samplingModes && options.samplingModes[i]) {
+                if (options.samplingModes && options.samplingModes[i] !== undefined) {
                     samplingModes.push(options.samplingModes[i]);
                 } else {
                     samplingModes.push(Texture.BILINEAR_SAMPLINGMODE);
@@ -162,4 +162,4 @@ module BABYLON {
             }
         }
     }
-}
+}