d3d_entsort
If this predefined variable (default 1) is set to 0, transparent entities
are not sorted before rendering. This can produce visible sorting faults of transparent
entities with high alpha values or alpha channels, but increases the frame rate
when a lot of transparent entities are on the screen. Single model polygons or
particles are not sorted, therefore they can be visible in wrong order.
Range:
0 - do not sort transparent objects before rendering.
1 - sort transparent entities by their origin distance
to the camera position (default).
2- sort transparent entities by their two dimensional origin XY distance
to the camera position.
Type:
var, redefine
Remarks:
If set at 2, the Z position of the entity is ignored for sorting transparent entities.
They are sorted only according to their X and Y distances to the camera, which
is better suited for isometric games.
Example:
d3d_entsort = 0; // not sorting transparent objects!
See also:
transparent, alpha