Custom HUD texture spazzing out

As you can see in the picture above the wood texture in the bottom left and is messed up. When I move and turn the texture freaks out even more, but there is a slight sweet spot where the texture looks completely normal. How can I prevent the texture from freaking out and look how its intended?

Here is the code where the texture is being called



local mat = Material("testTexture.vmt")

hook.Add("HUDPaint","testHUD",function()
	surface.SetDrawColor(255,255,255,255)
	surface.SetMaterial(mat)
	surface.DrawTexturedRect(ScrW()/2*0.5,ScrH()/2*1.25,185,300)
end)


Any and all help is appreciated!

[editline]31st December 2016[/editline]

P.S. Don’t mind all the other errors I’m on my laptop which doesn’t have CS Source textures.

This is what the wood texture is supposed to look like for reference.

What shader is set in the .vmt? It must be UnlitGeneric if you want to draw textures on HUD.

That did it, thank you very much! I couldn’t find any tutorials on this subject