浏览代码

Fix geenrator

= 9 年之前
父节点
当前提交
0f1c1e0dbf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Lights/Shadows/babylon.shadowGenerator.ts

+ 1 - 1
src/Lights/Shadows/babylon.shadowGenerator.ts

@@ -138,7 +138,7 @@
             // Texture type fallback from float to int if not supported.
             var textureType: number;
             var caps = this._scene.getEngine().getCaps();
-            if (caps.textureFloat && caps.textureFloatLinearFiltering) {
+            if (caps.textureFloat && caps.textureFloatLinearFiltering && caps.textureFloatRender) {
                 this._useFullFloat = true;
                 textureType = Engine.TEXTURETYPE_FLOAT;
             }