Merge multiple Textures #3222
Answered
by
MrGVSV
tguichaoua
asked this question in
Q&A
-
I followed the example of shader/array_texture that require a Texture that contains the differents textures. Is there a way to load the texture from several files, to create the texture at runtime ? |
Beta Was this translation helpful? Give feedback.
Answered by
MrGVSV
Nov 30, 2021
Replies: 1 comment 2 replies
-
You may want to check out the Specifically, the merging happens here: bevy/examples/2d/texture_atlas.rs Lines 51 to 57 in 3de391b And it can be used to create a texture of textures, so to speak |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
tguichaoua
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You may want to check out the
TextureAtlasBuilder
.Specifically, the merging happens here:
bevy/examples/2d/texture_atlas.rs
Lines 51 to 57 in 3de391b
And it can be used to create a texture of textures, so to speak