Prechádzať zdrojové kódy

Don't support flipping Y coordniate of textures yet

Scott Ramsby 7 rokov pred
rodič
commit
70a37a6d5e
1 zmenil súbory, kde vykonal 5 pridanie a 1 odobranie
  1. 5 1
      src/Engine/babylon.nativeEngineWrapper.ts

+ 5 - 1
src/Engine/babylon.nativeEngineWrapper.ts

@@ -730,7 +730,11 @@
 
                     this._interop.loadTexture(webGLTexture, arrayBuffer, !noMipmap);
 
-                    this._unpackFlipY(invertY === undefined ? true : (invertY ? true : false));
+                    if (invertY)
+                    {
+                        throw new Error("Support for textures with inverted Y coordinates not yet implemented.");
+                    }
+                    //this._unpackFlipY(invertY === undefined ? true : (invertY ? true : false));
 
                     texture.baseWidth = this._interop.getTexureWidth(webGLTexture);
                     texture.baseHeight = this._interop.getTexureHeight(webGLTexture);