local a = Material("vgui/zoom")
local b = 0
hook.Add("HUDPaint","vignette",function()
local c = math.max(0, LocalPlayer():GetNWInt('vignette') - 0.5 * 2)
b = math.Approach(b, c, FrameTime())
surface.SetMaterial(a)
surface.SetDrawColor(255, 255, 255, 200 * b)
surface.DrawTexturedRect(0, 0, ScrW(), ScrH())
surface.DrawTexturedRectUV(0, 0, ScrW(), ScrH(), 1, 1, 0, 0)
end)