My goal is to create a mini-map. I already know how to draw a texture on the screen, change it’s location, and re-size it.
What I’d like to know is how to restrict drawing of the mini-map texture to inside a rectangle. I want to be able to manipulate the mini-map texture without its contents leaving the mini-map rectangle.
on the garrysmod wiki. This almost gives me what I want. It creates a material inside a box. I can re-size the material, but I can’t change where the material is located in the box (required to have the map “follow” the player as they move.)
Ideally, I would like to be able to rotate the material as well, but I can live with just moving it around and re-sizing it. If you know a good way of doing this, your help would be appreciated.
EDIT: I did find scripts on garrysmod.org using a 3D rendering from above as a mini-map. This is not what I want.
EDIT2: Screenshot of what I have.