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.

BUG

This is still called when r_drawentities or r_drawopaquerenderables is disabled.

Issue Tracker: #3295

BUG

This is not called when r_drawtranslucentworld is disabled.

Issue Tracker: #3296

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