GM/PreDrawTranslucentRenderables

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

Contents

Description

Called before all the translucent entities are drawn.

See also GM:PreDrawOpaqueRenderables and GM:PostDrawTranslucentRenderables.

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 translucent renderables from drawing.
Personal tools
Navigation