Revision Difference
GM:PreDrawTranslucentRenderables#530524
<function name="PreDrawTranslucentRenderables" parent="GM" type="hook">
<ishook>yes</ishook>
<description>
Called before all the translucent entities are drawn.
See also <page>GM:PreDrawOpaqueRenderables</page> and <page>GM:PostDrawTranslucentRenderables</page>.
<rendercontext hook="true" type="3D"></rendercontext>
<bug issue="3295">This is still called when r_drawentities or r_drawopaquerenderables is disabled.</bug>
<bug issue="3296">This is not called when r_drawtranslucentworld is disabled.</bug>
</description>
<realm>Client</realm>
<predicted>No</predicted>
<args>
<arg name="isDrawingDepth" type="boolean">Whether the current draw is writing depth.</arg>
<arg name="isDrawSkybox" type="boolean">Whether the current draw is drawing the skybox.</arg>⤶
<arg name="isDrawSkybox" type="boolean">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`.</arg>⤶
</args>
<rets>
<ret name="" type="boolean">Return true to prevent translucent renderables from drawing.</ret>
</rets>
</function>