Can I add a tiled Image with bjs GUI?

Hello everybody!

I want to draw an image that preserves its original size in pixels and is tiled along both axes.

Can I do it with GUI and AdvancedDynamicTexture?
I’ve investigated the Image class but I don’t see anything related to wrap modes and/or texture coordinates. I can draw several images but this is more like a hack. Maybe there is another GUI class that is suitable for the task?

I have options to use Post Effects or to just draw a fullscreen quad with a custom shader.
Still I was wondering if there is a more straightforward way to do that.

cc @carolhmj

Hello! This is because we don’t use WebGL Textures for the GUI Images, we use HTML Canvas Images. So if you’d like “free” tiling the way to go is using textures indeed.

3 Likes

Got it, thanks!