[IMG]http://i.imgur.com/SEiSdFv.jpg[/IMG]
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
[CODE]
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)
[/CODE]
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.
[IMG]http://i.imgur.com/abidIzw.jpg[/IMG]
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.
[QUOTE=mijyuoon;51606552]What shader is set in the .vmt? It must be UnlitGeneric if you want to draw textures on HUD.[/QUOTE]
That did it, thank you very much! I couldn't find any tutorials on this subject
Sorry, you need to Log In to post a reply to this thread.