Jelajahi Sumber

Fix geenrator

= 9 tahun lalu
induk
melakukan
0f1c1e0dbf
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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.
             // Texture type fallback from float to int if not supported.
             var textureType: number;
             var textureType: number;
             var caps = this._scene.getEngine().getCaps();
             var caps = this._scene.getEngine().getCaps();
-            if (caps.textureFloat && caps.textureFloatLinearFiltering) {
+            if (caps.textureFloat && caps.textureFloatLinearFiltering && caps.textureFloatRender) {
                 this._useFullFloat = true;
                 this._useFullFloat = true;
                 textureType = Engine.TEXTURETYPE_FLOAT;
                 textureType = Engine.TEXTURETYPE_FLOAT;
             }
             }