DarkBASIC Professional Help File

DX11 SET LIMB SORT MODE

Sets the sorting mode to be used by the specified limb during rendering.
Valid mode values:

- 0 - Back-to-front sorting which prioritizes state changes over depth. Should be used for opaque limbs. All limbs with this mode will be drawn before any with any other modes.
- 1 - Front-to-back sorting which prioritizes depth over state changes. Should be used for see-through limbs to ensure they blend properly with other translucent limbs behind them.
- 2 - Front-to-back sorting which prioritizes state changes over depth. Can be used with 1-bit transparent limbs where it is more important to save render time than to have perfect sorting.

In conclusion, use mode 0 for opaque limbs and mode 1 or 2 for transparent limbs. Actually making limbs transparent is up to your pixel shaders and blend states.

Syntax

    DX11 SET LIMB SORT MODE limb, sortMode

Parameters

    limb

> Dword
> The limb to set the sorting mode of.

    sortMode

> Dword
> The sorting mode to set for the limb. Must correspond to one of the values listed above.

Returns

This function does not return a value.

See also

LIMB Functions Menu
DX11 Function Categories