Hey, my image in gmod I made in photoshop is coming out blurry in gmod
the code
frame1.Paint = function(self, w, h)
surface.SetDrawColor( 255, 255, 255, 255 )
surface.SetMaterial( Material( "materials/upgradeBtn.png" ))
surface.DrawTexturedRect( 25, 25, 118, 33 )
end
the dimensions are correct, 118 width, 33 height
This is what it looks like in photoshop
https://files.facepunch.com/forum/upload/245833/b989fd3e-5ac3-40e8-8a9b-5b9eae7a5a62/Screenshot_5.png
this is what it looks like in gmod
https://files.facepunch.com/forum/upload/245833/7a34f745-576a-4238-87ef-4d4ac7e7fa9c/Screenshot_4.png
You need to make the button's dimensions power of two. Materials automatically get scaled to the nearest power of two which usually results in low quality materials.
Sorry, you need to Log In to post a reply to this thread.