Garry's Mod Wiki

GM:PreDrawTranslucentRenderables

boolean GM:PreDrawTranslucentRenderables( boolean isDrawingDepth, boolean isDrawSkybox )

Description

Called before all the translucent entities are drawn.

See also GM:PreDrawOpaqueRenderables and GM:PostDrawTranslucentRenderables.

This is a rendering hook which provides a 3d rendering context.
This is still called when r_drawentities or r_drawopaquerenderables is disabled.

Issue Tracker: 3295
This is not called when r_drawtranslucentworld is disabled.

Issue Tracker: 3296

Arguments

1 boolean isDrawingDepth
Whether the current draw is writing depth.
2 boolean isDrawSkybox
Whether the current draw is drawing the skybox.

Returns

1 boolean
Return true to prevent translucent renderables from drawing.

Page Links


Special Pages


Wikis

?

Render Time: 218ms

DB GetPage 94
Generate Html 10
SaveChanges (1) 96
Render Body 0
Render Sidebar 15