Explorar o código

Fix Env from Image Bitmap

sebavan %!s(int64=4) %!d(string=hai) anos
pai
achega
7a6f894d30
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Misc/environmentTextureTools.ts

+ 1 - 1
src/Misc/environmentTextureTools.ts

@@ -375,7 +375,7 @@ export class EnvironmentTextureTools {
                         // Uncompress the data to a RTT
                         rgbdPostProcess!.onApply = (effect) => {
                             effect._bindTexture("textureSampler", tempTexture);
-                            effect.setFloat2("scale", 1, 1);
+                            effect.setFloat2("scale", 1, (image instanceof ImageBitmap) ? -1 : 1);
                         };
 
                         if (!engine.scenes.length) {