AlphaCutMode

    SpriteBase3D.swift:41
    enum AlphaCutMode

    Cases

    • case disabled

      This mode performs standard alpha blending. It can display translucent areas, but transparency sorting issues may be visible when multiple transparent materials are overlapping.

    • case discard

      This mode only allows fully transparent or fully opaque pixels. Harsh edges will be visible unless some form of screen-space antialiasing is enabled (see ProjectSettings/rendering/antiAliasing/quality/screenSpaceAa). On the bright side, this mode doesn’t suffer from transparency sorting issues when multiple transparent materials are overlapping. This mode is also known as alpha testing or 1-bit transparency.

    • case opaquePrepass

      This mode draws fully opaque pixels in the depth prepass. This is slower than .alphaCutDisabled or .alphaCutDiscard, but it allows displaying translucent areas and smooth edges while using proper sorting.

    • case hash

      This mode draws cuts off all values below a spatially-deterministic threshold, the rest will remain opaque.

    Other members in extension

    View members

    Hide members

    This section is hidden by default because it contains too many (24) members.

    Types

    Type members

    Instance members

    Citizens in SwiftGodot

    Conformances

    Type members

    Instance members

    Type features

    Instance features