Click or drag to resize
Ab4d.SharpEngine logo

SceneIsTransparencySortingEnabled 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: Ab4d.SharpEngine
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
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 CameraDistanceSortedRenderingLayer.

Default value is false.

See Also