• How to Make Blurry Rectangles with surface.Draw(Textured)Rect?
    1 replies, posted
Hello, I'm wanting to make a rectangle blurry, but I don't know how. There are a bunch of things that say "blur," but I don't know how to use them correctly. All I want is a blurry transparent rectangle coloured black, and I'm trying to use surface.DrawRect or surface.DrawTexturedRect, which one do I use for a blur effect, and what do I do? I've tried searching the internet for this, but it's just something stupid, so I guess nobody has any tutorials... So if you know, I'd like at least an example of a blurred rectangle/texture and the code so that maybe I can learn from that. Thank you :D
Do you mean you want the background behind the rectangle to be blurred? [URL="https://github.com/Facepunch/garrysmod/blob/master/garrysmod/lua/derma/derma_utils.lua#L7-L34"]If so, you just need to draw a couple of textured rects with a blur material.[/URL] [QUOTE=Paperclippy;52326059]I've tried searching the internet for this, but it's just something stupid, so I guess nobody has any tutorials[/QUOTE] [url]https://facepunch.com/showthread.php?t=1487492[/url] [url]https://facepunch.com/showthread.php?t=1455733[/url] [url]https://facepunch.com/showthread.php?t=1464767[/url] [url]https://facepunch.com/showthread.php?t=1545015[/url] [url]https://facepunch.com/showthread.php?t=1515968[/url] [url]https://facepunch.com/showthread.php?t=1507451[/url] Or, do you mean you want the edges of the rectangle to be blurred?
Sorry, you need to Log In to post a reply to this thread.