Garry's Mod Wiki

DrawSobel

DrawSobel

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 )

Special Pages


Wikis

?

Render Time: 18ms

DB GetPage 2
Generate Html 1
SaveChanges (1) 5
Render Body 0
Render Sidebar 6