Revision Difference
Global.DrawSobel#515994
<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.⤶
| Code = function GM:RenderScreenspaceEffects()⤶
⤶
```⤶
⤶
<example>⤶
<description>Draws the sobel shader.</description>⤶
<code>⤶
function GM:RenderScreenspaceEffects()⤶
DrawSobel(0.5)
```⤶
⤶
⤶
end⤶
}}⤶
end⤶
</code>⤶
⤶
</example>