Garry's Mod Wiki


boolean GM:PreDrawTranslucentRenderables( boolean isDrawingDepth, boolean isDrawSkybox )


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


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


1 boolean
Return true to prevent translucent renderables from drawing.

Page Links

Special Pages



Render Time: 36ms

DB GetPage 4
Generate Html 7
SaveChanges (1) 9
Render Body 0
Render Sidebar 12