Garry's Mod Wiki

Garry's Mod Wiki

Description

Enumerations used by GetRenderTargetEx. Clientside only.

When Anti Aliasing is enabled then MATERIAL_RT_DEPTH_SHARED and MATERIAL_RT_DEPTH_SEPARATE will always create a new depth-stencil buffer because Render Targets do not have Anti Aliasing.

Values

MATERIAL_RT_DEPTH_SHARED0Do not create a depth-stencil buffer.
Use the default depth-stencil buffer if used as render target 0.
MATERIAL_RT_DEPTH_SEPARATE1Create a depth-stencil buffer.
Use the created depth-stencil buffer if used as render target 0.
MATERIAL_RT_DEPTH_NONE2Do not create a depth-stencil buffer.
Disable depth and stencil buffer usage if used as render target 0.
MATERIAL_RT_DEPTH_ONLY3Create 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.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...