render.Clear

From Garry's Mod
Jump to: navigation, search
 render.Clear( )

Contents

Description

Clears the current render target and the specified buffers.

BUG

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

Issue Tracker: #2085

Arguments

number r

Red component to clear to.

Arguments

number g

Green component to clear to.

Arguments

number b

Blue component to clear to.

Arguments

number a

Alpha component to clear to.

Arguments

boolean clearDepth=false

Clear the depth.

Arguments

boolean clearStencil=false

Clear the stencil.
Personal tools
Navigation