GM:PostDrawTranslucentRenderables
GM:PostDrawTranslucentRenderables( boolean bDrawingDepth, boolean bDrawingSkybox, boolean isDraw3DSkybox )
Description
Called after all translucent entities are drawn.
See also GM:PostDrawOpaqueRenderables and GM:PreDrawTranslucentRenderables.
This is a rendering hook which provides a 3d rendering context.
Arguments
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
.
Example
Draws a solid black sphere at where the player is looking at, but not when the skybox is being drawn.
You can see why this is needed if you disable the skybox check and look into the sky on gm_flatgrass (or any other map where the 3d skybox is below the map) and you will notice 2 spheres and not 1.
Output: