TextureCanvas: A texture for drawing textures onto

#1

Hi all,

Let me introduce you to TextureCanvas: a Babylon Texture just for drawing other textures. Compared to DynamicImage for drawing textures or images, it has the benefit of having all resources directly available to it on the GPU, and providing a specialized API.

Here’s the GitHub page, which also includes three demo playgrounds and the documentation:

Here’s an example of something you can do with it, which is painting textures on a plane:
https://www.babylonjs-playground.com/#DK424Y#4

This is an ongoing project, and any feedback would be appreciated!

6 Likes

#2

This is excellent!!!
That should be on our extension repo for sure!

1 Like

#3

Excellent idea and choose of implementation

2 Likes