Garry's Mod Wiki

cam.IgnoreZ

  cam.IgnoreZ( boolean ignoreZ )

Description

Tells the renderer to ignore the depth buffer and draw any upcoming operation "ontop" of everything that was drawn yet.

This is identical to calling render.DepthRange( 0, 0.01 ) for true and render.DepthRange( 0, 1 ) for false. See render.DepthRange.

Arguments

1 boolean ignoreZ
Determines whenever to ignore the depth buffer or not.