Class LensDistortionBrownConrady
A component that manages the Lens Distortion effect.
Inherited Members
Namespace: Unity.LiveCapture .Cameras
Assembly: Unity.LiveCapture.Cameras.dll
Syntax
[DisallowMultipleComponent]
[ExecuteAlways]
[RequireComponent(typeof(Camera))]
[RequireComponent(typeof(SharedVolumeProfile))]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.live-capture@4.0/manual/ref-component-lens-distortion.html")]
public class LensDistortionBrownConrady : MonoBehaviour
Remarks
This component uses the Brown-Conrady distortion model and is only available in HDRP.
Properties
DistortionScale
The scale of the distortion effect.
Declaration
public float DistortionScale { get; set; }
Property Value
Type | Description |
---|---|
float |
FakeFieldOfView
The field of view used for rendering.
Declaration
public float FakeFieldOfView { get; set; }
Property Value
Type | Description |
---|---|
float |
Remarks
If this value is greater than the camera's field of view, the image will be cropped. This can be used to eliminate edge artifacts created during the distortion without using a second camera.
RadialCoefficients
The radial distortion coefficients.
Declaration
public Vector3 RadialCoefficients { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
TangentialCoefficients
The tangential distortion coefficients.
Declaration
public Vector2 TangentialCoefficients { get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
UseDistortionScale
Whether to use the distortion scale.
Declaration
public bool UseDistortionScale { get; set; }
Property Value
Type | Description |
---|---|
bool |