Revision Difference
GM:PreDrawOpaqueRenderables#530523
<function name="PreDrawOpaqueRenderables" parent="GM" type="hook">
<ishook>yes</ishook>
<description>
Called before all opaque entities are drawn.
See also <page>GM:PreDrawTranslucentRenderables</page> and <page>GM:PostDrawOpaqueRenderables</page>.
<rendercontext hook="true" type="3D"></rendercontext>
</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 opaque renderables from drawing.</ret>
</rets>
</function>