Open ryleigh opened 10 months ago
I suspect we can use similar code to the sprite shader to make this draw view independant. Ie, we send the vertex position, the size of the rect and the geometry shader turns that into triangles to draw on the screen.
Failing that we'd have a special sceneobject to re-project it on draw. Which tbh might be more useful going forward.
If you have the scene view open, Gizmo.Draw.Text draws at the wrong spot. Maximizing the game view doesn't fix it, but hiding the scene view completely does.
https://github.com/Facepunch/sbox-issues/assets/1173137/56a9ea38-d8c1-4d28-aa7a-34d38756702f