If I wanted to blur the whole screen, and then draw a semi-transparent black panel over the top, to give the following effect:
[T]http://i.imgur.com/fbNODwx.png[/T]
Would I use Derma_DrawBackgroundBlur( Panel panel, number startTime )? If so, I'm a little confused on how to use it, or is there a better way? And then of course just draw a Panel ontop.
[B]*The above picture was done in photoshop :) Just an example of what I was looking for*[/B]
Well i think the standard gmod function for that is broken ATM *Correct me if i'm wrong* ( I also need it )
Well but what you can try is making this :
[U](not sure if this works)[/U]
[LUA]local blurTex = Material( "pp/blurscreen" )
surface.SetMaterial( blurTex )
surface.SetDrawColor( 255, 255, 255, 255 )
blurTex:SetMaterialFloat( "$blur", 3 )
render.UpdateScreenEffectTexture()
surface.SetMaterial(blurTex)
surface.DrawTexturedRect( 0, 0, ScrW(), ScrH() )[/LUA]
[QUOTE=sm69baller;45023936]Well i think the standard gmod function for that is broken ATM *Correct me if i'm wrong* ( I also need it )
Well but what you can try is making this :
[U](not sure if this works)[/U]
[LUA]local blurTex = Material( "pp/blurscreen" )
surface.SetMaterial( blurTex )
surface.SetDrawColor( 255, 255, 255, 255 )
blurTex:SetMaterialFloat( "$blur", 3 )
render.UpdateScreenEffectTexture()
surface.SetMaterial(blurTex)
surface.DrawTexturedRect( 0, 0, ScrW(), ScrH() )[/LUA][/QUOTE]
Thankjs I';ll have to look into this.
Sorry, you need to Log In to post a reply to this thread.