Garry's Mod Wiki

DrawMaterialOverlay

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 )

Special Pages


Wikis

?

Render Time: 48ms

DB GetPage 6
Generate Html 2
SaveChanges (1) 30
Render Body 0
Render Sidebar 7