瀏覽代碼

fix(mrt) : Set unsigned byte texture type as default to avoid BabylonJS/Babylon/js#3398

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

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

@@ -66,7 +66,7 @@ module BABYLON {
                 if (options.types && options.types[i] !== undefined) {
                     types.push(options.types[i]);
                 } else {
-                    types.push(Engine.TEXTURETYPE_FLOAT);
+                    types.push(Engine.TEXTURETYPE_UNSIGNED_INT);
                 }
 
                 if (options.samplingModes && options.samplingModes[i] !== undefined) {