Godot Version
4.5
Question
I want to draw a polygon in my Node2D, but am finding that the texture parameter I’m passing is drawn with clamping. I want the texture to repeat instead. Is there a way to do this?
draw_polygon(points, colors, uvs, tex)
I was also thinking of maybe creating a custom material for this polygon, but I cannot see any way to draw the polygon with a specified material. My _draw() method is drawing a variety of things, so I can’t just set the material parameter of my Node2D. I also cannot make it a child node, since then it will overlap/cover up stuff drawn in the node’s _draw method.