GM/PreDrawOpaqueRenderables

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m
Line 1: Line 1:
 
{{Hook
 
{{Hook
|Name=PreDrawOpaqueRenderables
 
|Parent=GM
 
 
|Description=Called before all opaque entities are drawn.
 
|Description=Called before all opaque entities are drawn.
 
|Realm=Client
 
|Realm=Client
 +
|Predicted=No
 +
|Name=PreDrawOpaqueRenderables
 +
|Parent=GM
 
}}
 
}}
 
{{Arg
 
{{Arg
Line 13: Line 14:
 
|type=boolean
 
|type=boolean
 
|name=isDrawSkybox
 
|name=isDrawSkybox
|desc=Whether the current draw is drawing the skybow.
+
|desc=Whether the current draw is drawing the skybox.
 
}}
 
}}
 
{{Ret
 
{{Ret

Revision as of 18:22, 13 November 2015

 GM:PreDrawOpaqueRenderables( )

Contents

Description

Called before all opaque entities are drawn.

Arguments

boolean isDrawingDepth

Whether the current draw is writing depth.

Arguments

boolean isDrawSkybox

Whether the current draw is drawing the skybox.

Returns

boolean

Return true to prevent opaque renderables from drawing.
Personal tools
Navigation