Render Order

From Garry's Mod
Revision as of 06:58, 13 December 2013 by Sam (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Render Order

Below is the order in which Lua rendering hooks are called. This is useful if you only want to draw to the screen during a certain step.

1	PreRender
2	RenderScene
3	DrawMonitors
4	PreDrawSkyBox
5	PostDraw2DSkyBox
6	PreDrawOpaqueRenderables
7	PostDrawOpaqueRenderables
8	PreDrawTranslucentRenderables
9	PostDrawTranslucentRenderables
10	PostDrawSkyBox
11	PreDrawOpaqueRenderables
12	PostDrawOpaqueRenderables
13	PreDrawTranslucentRenderables
14	PostDrawTranslucentRenderables
15	PreDrawViewModel
16	PreDrawViewModel
17	PostDrawViewModel
18	PreDrawEffects
19	RenderScreenspaceEffects
20	PreDrawHalos
21	PostDrawEffects
22	PreDrawHUD
23	HUDPaintBackground
24	HUDPaint
25	HUDDrawScoreBoard
26	PostDrawHUD
27	DrawOverlay
28	PostRenderVGUI
29	PostRender
Personal tools
Navigation