G.DrawMaterialOverlay

From GMod Wiki

Jump to: navigation, search
Function
Syntax DrawMaterialOverlay( String Texture, Float RefractAmount )
Where is this used?
Description:
Applies a texture overlay. Used in the "Overlay" post-processing effect.
Returns: nil
Part of Library: Global Functions
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.DrawMaterialOverlay]G.DrawMaterialOverlay [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionDraws the combine binocular overlay on your screen.
Used onNewerClient.png
Code
function DrawBinoc()
    DrawMaterialOverlay( "effects/combine_binocoverlay.vmt", 0.1 )
end
 
hook.Add( "RenderScreenspaceEffects", "BinocDraw", DrawBinoc )
OutputN/A


Additional Notes

See Also


Color wheel.pngPost Processing

Hook: RenderScreenspaceEffects


Functions:
- DrawBloom -
- DrawColorModify -
- DrawMaterialOverlay -
- DrawMorph -
- DrawMotionBlur -
- DrawSharpen -
- DrawSobel -
- DrawSunBeams -
- DrawToyTown -


For usage of the Sandbox Post Processing menu, see Post Processing Menu.

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox