So I’m trying to make it so that when the client receives a net message it will render a screen space effect, this being DrawSobel (as a test). I am trying to make it so that it smoothly draws the sobel but I am having issues. I have tried Lerp and math.Approach but both seem instant.
– In the HUDDraw Hook
net.Receive( “ghostie_effects”, function()
hook.Add( “RenderScreenspaceEffects”, “GhostieEffects”, DrawGhostieEffects )
timer.Create( “StopGhostieEffects”, 10, 1, function()
hook.Remove( “RenderScreenspaceEffects”, “GhostieEffects” )
– A seperate function
local sexysmoothness = math.Approach( 0, 0.8, FrameTime() * 50 )
DrawSobel( sexysmoothness )
Any help is appreciated!