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 )

Page Links


Special Pages


Wikis

?

Render Time: 24ms

DB GetPage 3
Generate Html 3
SaveChanges (1) 9
Render Body 0
Render Sidebar 6