So I’ve heard you can use RenderScreenspaceEffects to draw 3D2D, but I’ve tried and tried to no avail.
Maybe I’m doing something wrong?
Here’s a simple test script I wrote up to test if it works at all, and I can’t get it to work.
if not Checkers then Checkers = surface.GetTextureID(“a_nil_texture”) end
local pos = Vector(0,0,0) cam.Start3D2D(pos,Angle(0,0,90),0.4) surface.SetTexture(Checkers) surface.SetDrawColor(255,255,255,255) surface.DrawTexturedRect(0,0,128,128) cam.End3D2D() cam.Start3D2D(pos,Angle(0,0,270),0.4) surface.SetTexture(Checkers) surface.SetDrawColor(255,255,255,255) surface.DrawTexturedRect(0,0,128,128) cam.End3D2D()
Most of it is copy-pasted from an entity I made for another gamemode of mine, which works just fine, so I’m almost positive its not something to do with the Start3D2D/End3D2D lines.
Any insight would be appreciated as to how to do this outside the usage of an entity’s Draw() function, since my ultimate goal of doing this is to draw sprites without having to use an entity.