Environment texture flipped when created using ImageBitmap

Hello!

I’ve noticed that cube environment texture applied to the scene is rendered on a PBR material with some parts of it flipped upside down, when createImageBitmap is used for it.

Here is a link to PG.

You can see the difference if you compare latest version against 6.49.0 (I think the change was introduced around v.7.32.2):

8.0.2 / 6.49.0

Notice that I had to add engine._features.forceBitmapOverHTMLImageElement = true; which is a private property and I guess only should be true for the “native” engine, and not for web.
So my question really is if such rendering of environment texture expected or not?

Thank you!

cc @Evgeni_Popov

This PR will fix the problem:

1 Like

Thank you!

This fix works indeed :tada: