Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mat = CreateMaterial("asodkaosd_" .. os.clock(), "UnlitGeneric")
- mat:SetTexture("$basetexture", Material("models/barnacle/roots"):GetTexture("$basetexture"))
- local scale = Vector(1,1)
- local offset = Vector(0,0)
- local center= Vector(0.5, 0.5)
- local rotate = Angle(50, 523)
- hook.Add("HUDPaint",1,function()
- mat:SetString("$basetexturetransform", ("center = %f %f translate %f %f scale %f %f rotate %f %f"):format(center.x, center.y, offset.x, offset.y, scale.x, scale.y, rotate.p, rotate.y))
- surface.SetDrawColor(255, 255, 255, 255)
- surface.SetMaterial(mat)
- surface.DrawTexturedRect(0,0, 256,256)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement