Skip to content

QualityTierSelector

ClassTextStudio.ThreeDTextStudio.3D
public sealed class QualityTierSelector

LOD-based quality tier selector for Text Studio — 3D rendering. Automatically adjusts geometry quality based on screen-space size.

public QualityTierSelector()

public QualityTierSelector(QualityTierSelector source)

Creates a detached copy of another selector, or default settings when the source is null.

Parameters

Name Type
source TextStudio.ThreeD.QualityTierSelector

public QualityTierSelector Clone()

Creates a detached copy suitable for caller-owned runtime configuration.

Returns

TextStudio.ThreeD.QualityTierSelector

public LODParams Evaluate(float cameraDistance)

Evaluate LOD parameters for a given camera distance.

Parameters

Name Type
cameraDistance System.Single

Returns

TextStudio.ThreeD.LODParams

public LODParams Evaluate(float cameraDistance, QualityTier previousTier, bool hasPreviousTier)

Evaluates one of three stable quality bands. The previous tier is used to keep the current band until the camera crosses its boundary plus the hysteresis margin. Geometry parameters are quantized per band so camera movement inside a band does not continuously rebuild the text mesh.

Parameters

Name Type
cameraDistance System.Single
previousTier TextStudio.ThreeD.QualityTier
hasPreviousTier System.Boolean

Returns

TextStudio.ThreeD.LODParams

public float NearDistance { get; set; }

Returns

System.Single

public float FarDistance { get; set; }

Returns

System.Single

public int MinimumBevelSegments { get; set; }

Returns

System.Int32

public int MaximumBevelSegments { get; set; }

Returns

System.Int32

public float NearCurveTolerance { get; set; }

Returns

System.Single

public float FarCurveTolerance { get; set; }

Returns

System.Single

public float Hysteresis { get; set; }

Returns

System.Single