CanvasTexture not supporting flipY

Looks like when using ImageBitmapLoader and CanvasTexture the texture.flipY doesn’t work even when setting texture.needsUpdate to true.

BTW, the texture dimensions are power of 2. Does it matter?

Is this a known issue? Can you provide some workaround?

Thanks.

This is known and documented here:

https://threejs.org/docs/index.html#api/en/loaders/ImageBitmapLoader

Note that Texture.flipY and Texture.premultiplyAlpha with ImageBitmap are ignored. ImageBitmap needs these configuration on bitmap creation unlike regular images need them on uploading to GPU. You need to set the equivalent options via ImageBitmapLoader.setOptions instead. Refer to WebGL specification for the detail.

2 Likes