Sfoglia il codice sorgente

Merge branch 'master' of https://github.com/BabylonJS/Babylon.js

David Catuhe 5 anni fa
parent
commit
ff4fcf7cbd
2 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 1 0
      dist/preview release/what's new.md
  2. 1 1
      src/Misc/assetsManager.ts

+ 1 - 0
dist/preview release/what's new.md

@@ -92,5 +92,6 @@
 - Fix bug in PBR when translucency is enabled and an irradiance texture is provided ([Popov72](https://github.com/Popov72)
 - Fix bug in PBR with translucency when irradiance texture is 2D ([Popov72](https://github.com/Popov72)
 - Fix bug in PBR when specific combinations of parameters are used ([Popov72](https://github.com/Popov72)
+- Fix texture being inverted on the Y axis by default when using TextureAsset or AssetManager ([broederj](https://github.com/broederj))
 
 ## Breaking changes

+ 1 - 1
src/Misc/assetsManager.ts

@@ -509,7 +509,7 @@ export class TextureAssetTask extends AbstractAssetTask implements ITextureAsset
         /**
          * Defines if texture must be inverted on Y axis (default is false)
          */
-        public invertY?: boolean,
+        public invertY: boolean = false, // note that Texture defaults to true when using its constructor
         /**
          * Defines the sampling mode to use (default is Texture.TRILINEAR_SAMPLINGMODE)
          */