Garry's Mod Wiki

Revision Difference

GM:PreDrawOpaqueRenderables#524625

<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 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> </args> <rets> <ret name="" type="boolean">Return true to prevent opaque renderables from drawing.</ret> </rets> </function>