Table of Contents

Enum BaseMaterial3D.DepthDrawModeEnum

Namespace
Godot
Assembly
GodotSharp.dll
public enum BaseMaterial3D.DepthDrawModeEnum : long

Fields

Always = 1

Objects will write to depth during the opaque and the transparent passes. Transparent objects that are close to the camera may obscure other transparent objects behind them.

Note: This does not influence whether transparent objects are included in the depth prepass or not. For that, see BaseMaterial3D.TransparencyEnum.

Disabled = 2

Objects will not write their depth to the depth buffer, even during the depth prepass (if enabled).

OpaqueOnly = 0

Default depth draw mode. Depth is drawn only for opaque objects during the opaque prepass (if any) and during the opaque pass.