Garry's Mod Wiki

DrawMaterialOverlay

  DrawMaterialOverlay( string Material, number RefractAmount )

Description

Draws a material overlay on the screen.

Arguments

1 string Material
This will be the material that is drawn onto the screen.
2 number RefractAmount
This will adjust how much the material will refract your screen.

Example

Creates a fisheye effect on your screen.

hook.Add( "RenderScreenspaceEffects", "FishEyeEffect", function() DrawMaterialOverlay( "models/props_c17/fisheyelens", -0.06 ) end )