Revision Difference
Global.DrawMaterialOverlay#514811
<function name="DrawMaterialOverlay" parent="Global" type="libraryfunc">⤶
<description>Draws a material overlay on the screen.</description>⤶
<realm>Client</realm>⤶
<args>⤶
<arg name="Material" type="string">This will be the material that is drawn onto the screen.</arg>⤶
<arg name="RefractAmount" type="number">This will adjust how much the material will refract your screen.</arg>⤶
</args>⤶
</function>⤶
⤶
<example>⤶
<description>Creates a fisheye effect on your screen.</description>⤶
<code>⤶
function GM:RenderScreenspaceEffects()⤶
⤶
DrawMaterialOverlay("models/props_c17/fisheyelens", -0.06)⤶
⤶
end⤶
</code>⤶
⤶
</example>