The render.DrawLine function has this as an argument, the last argument “writeZ” which decides whether or not to write to the depth buffer. This works exactly how I want it to work, but I need to draw a Quad rather than a line. DrawQuad or DrawQuadEasy doesn’t have that argument. I’ve tried using render.OverrideDepthBuffer, but it doesn’t seem to work.
render.OverrideDepthEnable(true) render.SetMaterial(mat) render.DrawQuadEasy(self:GetPos(), Vector(0, 0, 1), 100, 100, Color(255, 255, 255), 0) render.OverrideDepthEnable(false)
The quad needs to draw ontop of the world, ignoring the depth buffer.
//Edit: I should probably mention, I am rendering this in the entity’s Draw function, but I have also tried to draw it in PostDrawOpaqueRenderables.
I can think of one way of making this work, which is to create a 3d context, but that just seems hacky and there has to be another way.