How to Export Texture by coding?

Hi~,
I find babylon use TextureCanvasManager to download texture,draw into a canvas, translate to blob then download. When I have a try to download texture with TCM, I find TCM is hard to create (It relates on React Component). Does there any sample way to download texture by coding?

You can read back the texture data using read

Then, you can download the array or create a new image using Javascript.

3 Likes

Thank you for your help :smiley: