GM:PreDrawOpaqueRenderables

From Garry's Mod
Jump to: navigation, search
 GM:PreDrawOpaqueRenderables( )

Contents

Description

Called before all opaque entities are drawn.

NOTE This is a rendering hook with a 3D rendering context.
This means that the only rendering functions will work in it are functions with a 3D rendering context.

Arguments

boolean isDrawingDepth

Whether the current draw is writing depth.

Arguments

boolean isDrawSkybox

Whether the current draw is drawing the skybox.

Returns

boolean

Return true to prevent opaque renderables from drawing.
Personal tools
Navigation