Click or drag to resize
AB4D logo

DXSceneIsTransparencySortingEnabled Property

Gets or sets a Boolean that specifies if sorting transparent objects by their distance to the camera is enabled. Default value is false. See remarks for more info.

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntax
C#
public bool IsTransparencySortingEnabled { get; set; }

Property Value

Boolean
Remarks

IsTransparencySortingEnabled gets or sets a Boolean that specifies if sorting transparent objects by their distance to the camera is enabled.

When rendering transparent and semi-transparent objects with using alpha blending (standard technique to render transparent objects), then the objects behind transparent objects needs to be rendered before the transparent objects. Otherwise the depth clipping will prevent them to be rendered and therefore they will not be visible through the transparent objects. This means that for correct rendering of transparent objects, then need to be rendered so that those farther away from the camera are rendered first and then objects closer to the camera are rendered.

Setting this value sets the IsSortingEnabled property on the CameraDistanceSortedRenderingQueue.

Default value is false.

See Also