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: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntax
C#
public bool IsTransparencySortingEnabled { get; set; }

Property Value

Boolean

[Missing <value> documentation for "P:Ab4d.SharpEngine.Scene.IsTransparencySortingEnabled"]

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