Got it, thank you!
Infinite ground grid shader
Hey @xyz, big thanks for creating that shader. It's been a lifesaver. I've got a question though. I'm trying to get the grid to display on top of other objects. I tried putting it on a quad mesh, but the grid always ends up behind everything else, no matter what I do to move the quad mesh above other objects. Any tips on how to fix that? Thanks a ton!
- Edited
usual_efficiency_410 The shader outputs proper depth so it's always drawn "on the ground". If you want it to be drawn over everything just replace the line that assigns to DEPTH
with:
DEPTH = 0.0;
Note that you'll also need to keep your camera facing quad or sprite closer to the camera than any other object.
Btw don't assign the shader to a horizontal ground quad or plane because that's not how it's really intended to be used.