d3d_entsort

Determines the sorting of transparent and intransparent entities.

Range:

0 - do not sort entities before rendering. This can improve the frame rate in special cases when the order of transparent entities does not matter.
1 - sort transparent entities back to front by their origin distance to the camera position (default).
2 - sort entities by their two dimensional XY distance to the camera position.
3 - sort entities by only their Y distance to the camera position. 8.05
5 - also sort intransparent entities front to back.
6 - also sort intransparent entities, and use the two dimensional XY distance for sorting.
7 - also sort intransparent entities, and use only the Y distance for sorting. 8.05
8 - sort entities by only their Z distance to the camera position. 8.50
12 - also sort intransparent entities by only their Z distance. 8.50

Type:

var

Remarks:

Example:

function main()
{
  d3d_entsort = 0; // not sorting transparent objects
  ...

See also:

Transparency, TRANSLUCENT, alpha

► latest version online