Facepunch / sbox-issues

181 stars 12 forks source link

[Node Graph Editors] Grid Backround gets a bit wonky up when zooming out #7486

Closed QuackCola closed 15 hours ago

QuackCola commented 1 week ago

Describe the bug

Right now the Stock grid for all Node Graph based editors doesn't cleanly draw when you zoom out.

https://github.com/user-attachments/assets/0ad28bbc-84a4-475b-9985-f37ba9865ba5

To Reproduce

  1. Open up shadergraph.
  2. Zoom out within the GraphView
  3. Notice how the grid starts to get a bit messed up as you zoom out.

Expected behavior

Grid background should draw cleanly when at a higher zoom level.

Media/Files

No response

Additional context

No response

CarsonKompon commented 15 hours ago

At the scale you're zooming out to you wouldn't even want the grid to draw anyway since there'd be a grid line nearly every pixel, so I just made it disappear when zooming out enough to reduce all the visual noise.