Garry's Mod Wiki

Garry's Mod Wiki

  DrawSobel( number Threshold )

Description

Draws the sobel shader, which detects edges and draws a black border.

Arguments

1 number Threshold
Determines the threshold of edges. A value of 0 will make your screen completely black.

Example

Draws the sobel shader.

hook.Add( "RenderScreenspaceEffects", "SobelShader", function() DrawSobel( 0.5 ) end )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...