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: 64ms

DB GetPage 40
Generate Html 10
SaveChanges (1) 5
Render Body 0
Render Sidebar 7