I need to draw a square for a multi-select.
but I dont know how to move a corner of square and extend it according to mouse position…
1 Like
Basic idea: recalculate vertex positions and reset the mesh buffer.
1 Like
You could do it in a vertex shader if it’s for visual purposes only.
1 Like
You could also just create a 1x1 quad and scale it according to width/height required.
1 Like
Has your question been adequately answered?
2 Likes
yes
2 Likes