Garry's Mod Wiki

Garry's Mod Wiki

  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.

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 four times a day. Edits and history are not available.

Last Parsed: Loading...