Hello,
I need some help over here. I saw a thread that was related to this but still could not figure it out.
I have this code to a blur RoundedBox and i want to use it on cordinates that i got here from my HUD.
draw.RoundedBox( 18, 790, ScrH() - 70, 360 * hp, 40, Color( 224, 255, 255)) -- Health Bar
I want to put another draw.RoundedBox under it and want to make it a blur material.
local blur = Material("pp/blurscreen")
local function DrawBlurRect(x, y, w, h)
local X, Y = 0,0
surface.SetDrawColor(255,255,255)
surface.SetMaterial(blur)
for i = 1, 5 do
blur:SetFloat("$blur", (i / 3) * (5))
blur:Recompute()
render.UpdateScreenEffectTexture()
render.SetScissorRect(x, y, x+w, y+h, true)
surface.DrawTexturedRect(X * -1, Y * -1, scrW, scrH)
render.SetScissorRect(0, 0, 0, 0, false)
end
draw.RoundedBox(0,x,y,w,h,Color(0,0,0,205))
surface.SetDrawColor(0,0,0)
surface.DrawOutlinedRect(x,y,w,h)
end
Can someone help me to were i put the cordinates?
Thank you