Skip to content

TextStudio3DQualityView

StructTextStudio.ThreeDTextStudio.3D
public readonly struct TextStudio3DQualityView

Value snapshot of one camera in the error envelope's frame. Plane normals point into the frustum. No camera or array is retained.

TextStudio3DQualityView(Matrix4x4, Matrix4x4, int, int, ReadOnlySpan, int, bool, double, Matrix4x4, ReadOnlySpan)

Section titled “TextStudio3DQualityView(Matrix4x4, Matrix4x4, int, int, ReadOnlySpan, int, bool, double, Matrix4x4, ReadOnlySpan)”
public TextStudio3DQualityView(Matrix4x4 localToClip, Matrix4x4 localNormalToWorld, int pixelWidth, int pixelHeight, ReadOnlySpan<Vector4> inwardLocalFrustumPlanes, int nearPlaneIndex, bool isNormalInterpolationQualified, double uploadNormalErrorDegrees, Matrix4x4 clipCoefficientError = null, ReadOnlySpan<Vector4> frustumPlaneCoefficientErrors = default)

Captures camera projection, inward frustum planes, pixel dimensions, and normal qualification as values.

Parameters

Name Type
localToClip UnityEngine.Matrix4x4
localNormalToWorld UnityEngine.Matrix4x4
pixelWidth System.Int32
pixelHeight System.Int32
inwardLocalFrustumPlanes System.ReadOnlySpan{UnityEngine.Vector4}
nearPlaneIndex System.Int32
isNormalInterpolationQualified System.Boolean
uploadNormalErrorDegrees System.Double
clipCoefficientError UnityEngine.Matrix4x4
frustumPlaneCoefficientErrors System.ReadOnlySpan{UnityEngine.Vector4}

public Vector4 GetFrustumPlane(int index)

Returns one of the six inward-facing frustum planes in local coordinates.

Parameters

Name Type
index System.Int32

Returns

UnityEngine.Vector4

public Vector4 GetFrustumPlaneCoefficientError(int index)

Returns the conservative coefficient error for one local frustum plane.

Parameters

Name Type
index System.Int32

Returns

UnityEngine.Vector4

public Matrix4x4 LocalToClip { get; }

Returns

UnityEngine.Matrix4x4

public Matrix4x4 ClipCoefficientError { get; }

Returns

UnityEngine.Matrix4x4

public Matrix4x4 LocalNormalToWorld { get; }

Returns

UnityEngine.Matrix4x4

public int PixelWidth { get; }

Returns

System.Int32

public int PixelHeight { get; }

Returns

System.Int32

public int NearPlaneIndex { get; }

Returns

System.Int32

public bool IsNormalInterpolationQualified { get; }

Returns

System.Boolean

public double UploadNormalErrorDegrees { get; }

Additional relative normal error from both output upload paths, including future packed-normal codecs.

Returns

System.Double