MATERIAL_RT_DEPTH Enumerations

From Garry's Mod
Jump to: navigation, search

Enumerations used by GetRenderTargetEx. Clientside only.

Warning! Decimal values are for reference only! The actual value may be different between two Garry's Mod versions.
Name Decimal Description
MATERIAL_RT_DEPTH_SHARED 0 Do not create a depth-stencil buffer.
Use the default depth-stencil buffer if used as render target 0.
MATERIAL_RT_DEPTH_SEPARATE 1 Create a depth-stencil buffer.
Use the created depth-stencil buffer if used as render target 0.
MATERIAL_RT_DEPTH_NONE 2 Do not create a depth-stencil buffer.
Disable depth and stencil buffer usage if used as render target 0.
MATERIAL_RT_DEPTH_ONLY 3 Create a depth-stencil buffer.
Use the created depth-stencil buffer if used as render target 0.

Creates a color texture despite the name.
Seems to behave the same as MATERIAL_RT_DEPTH_SEPARATE.

Personal tools
Navigation