Garry's Mod Wiki

Garry's Mod Wiki

  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 )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...