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.

function GM:RenderScreenspaceEffects() DrawMaterialOverlay("models/props_c17/fisheyelens", -0.06) end

Page Links


Special Pages


Wikis

?

Render Time: 28ms

Session 0
DB GetPage 3
Generate Html 3
SaveChanges 8
Render Body 0
Render Sidebar 11