Explorar o código

Fix geenrator

= %!s(int64=9) %!d(string=hai) anos
pai
achega
0f1c1e0dbf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
             }