always

    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.

    BaseMaterial3D.swift:274
    case always

    Other cases

    • case opaqueOnly

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

    • case disabled

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