Garry's Mod Wiki

Revision Difference

Global.DrawSobel#515882

<function name="DrawSobel" parent="Global" type="libraryfunc"> <description>Draws the sobel shader, which detects edges and draws a black border.</description> <realm>Client</realm> <args> <arg name="Threshold" type="number">Determines the threshold of edges. A value of 0 will make your screen completely black.</arg> </args> </function> ⤶ <example>⤶ <description>Draws the sobel shader.</description>⤶ <code>⤶ function GM:RenderScreenspaceEffects()⤶ ⤶ {{Example⤶ | Description = Draws the sobel shader.| Code = function GM:RenderScreenspaceEffects()⤶ ⤶ ```⤶ DrawSobel(0.5) ⤶ end⤶ </code>⤶ ⤶ </example>```⤶ ⤶ ⤶ end⤶ }}