• 2D
  • About combining textures

Hi everyone, I have a question regarding textures.

I have a Polygon2D node representing a side view of a wall with a brick wall texture assigned. The wall height may vary, so instead of stretching the texture, I want to show the same texture more than once, stitched together as one texture.

So for example have a texture that is a single row of bricks, and create a 10 brick tall wall texture dynamically when needed, by having the same texture repeat 10 times, as a single texture. I don't want to display multiple sprites, or use the texture repeat flag. Is there a native Godot solution for this?

Why don't you want to use texture repeat? That seems like the correct solution.

Instead of repeating, I am more in need of combining and/or repeating multiple textures and assigning that as a single texture for a Polygon2D, so repeating doesn't work in all cases.

I can use C#/.Net to combine images dynamically and create a texture from that, just trying to find if Godot has a built in solution for this.