Garry's Mod Wiki



render.Clear( number r, number g, number b, number a, boolean clearDepth = false, boolean clearStencil = false )


Clears the current render target and the specified buffers.

This sets the alpha incorrectly for surface draw calls for render targets.

Issue Tracker: 2085


1 number r
Red component to clear to.
2 number g
Green component to clear to.
3 number b
Blue component to clear to.
4 number a
Alpha component to clear to.
5 boolean clearDepth = false
Clear the depth.
6 boolean clearStencil = false
Clear the stencil.

Special Pages



Render Time: 69ms

DB GetPage 46
Generate Html 7
SaveChanges (1) 7
Render Body 0
Render Sidebar 7