Garry's Mod Wiki

render.Clear

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

Description

Clears the current render target and the specified buffers.

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

Issue Tracker: 2085

Arguments

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.