DrawMaterialOverlay

From Garry's Mod
Jump to: navigation, search
 DrawMaterialOverlay( )

Contents

Description

Draws a material overlay on the screen.

Arguments

string Material

This will be the material that is drawn onto the screen.

Arguments

number RefractAmount

This will adjust how much the material will refract your screen.

Examples

Example

Creates a fisheye effect on your screen.

function GM:RenderScreenspaceEffects()

	DrawMaterialOverlay("models/props_c17/fisheyelens", -0.06)

end


Personal tools
Navigation