Garry's Mod Wiki

Revision Difference

GM:PreDrawTranslucentRenderables#511240

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