Skip to content

Commit

Permalink
Added blur recomputation to Derma_DrawBackgroundBlur
Browse files Browse the repository at this point in the history
  • Loading branch information
Chessnut committed Oct 21, 2013
1 parent 5bd541b commit 37c8dcd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions garrysmod/lua/derma/derma_utils.lua
Expand Up @@ -29,6 +29,7 @@ function Derma_DrawBackgroundBlur( panel, starttime )
for i=0.33, 1, 0.33 do
matBlurScreen:SetFloat( "$blur", Fraction * 5 * i )
matBlurScreen:Recompute()
if ( render ) then render.UpdateScreenEffectTexture() end -- Todo: Make this available to menu Lua
surface.DrawTexturedRect( x * -1, y * -1, ScrW(), ScrH() )
end
Expand Down

0 comments on commit 37c8dcd

Please sign in to comment.