Garry's Mod Wiki

GM:PostDrawOpaqueRenderables

  GM:PostDrawOpaqueRenderables( boolean bDrawingDepth, boolean bDrawingSkybox, boolean isDraw3DSkybox )

Description

Called after drawing opaque entities.

See also GM:PostDrawTranslucentRenderables and GM:PreDrawOpaqueRenderables.

This is a rendering hook which provides a 3d rendering context.

Arguments

1 boolean bDrawingDepth
Whether the current draw is writing depth.
2 boolean bDrawingSkybox
Whether the current draw is drawing the 3D or 2D skybox.

In case of 2D skyboxes it is possible for this hook to always be called with this parameter set to true.

3 boolean isDraw3DSkybox
Whether the current draw is drawing the 3D.