Rounded blur

Hello,

A guy told me that rounding blur isn’t possible and that you need to scissor it.
It that a easier way to do this?


local blur = Material("pp/blurscreen")


local function DrawBlurRect(x, y, w, h)
	local X, Y = 0,0

	surface.SetDrawColor(255,255,255,125)
	surface.SetMaterial(blur)

	for i = 1, 3 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
end 


Nope, if i’m not mistaken the only way of really making a blur with rounded corners is using Stencils with maybe a round texture as corners or a poly drawn with rounded corners.
Either of those two.

Okay, thank you!