I get this weird textured rectangle glitch while rotating the Cam3D2D surface.
https://gyazo.com/2cf4a546d92fc71826a7ed429d9e718f
Here is the code for the textured rectangle:
surface.SetMaterial(m)
surface.SetDrawColor( 255, 255, 255, 255 )
surface.DrawTexturedRect( (627/2) - (512/2), 50, 512, 128 )
Any ideas?
Open your
.vmt
file and if at the first line is writtenLightmappedGeneric
just change it toUnlitGeneric
.