Browse Source

Fix geenrator

= 9 năm trước cách đây
mục cha
commit
0f1c1e0dbf
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
             }