docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct HDPhysicalCamera

    Holds the physical settings set on cameras.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Rendering.HighDefinition
    Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
    Syntax
    [Serializable]
    [Obsolete("Properties have been migrated to Camera class", false)]
    public struct HDPhysicalCamera

    Fields

    kMaxAperture

    The maximum allowed aperture.

    Declaration
    public const float kMaxAperture = 32
    Field Value
    Type Description
    float

    kMaxBladeCount

    The maximum blade count for the aperture diaphragm.

    Declaration
    public const int kMaxBladeCount = 11
    Field Value
    Type Description
    int

    kMinAperture

    The minimum allowed aperture.

    Declaration
    public const float kMinAperture = 0.7
    Field Value
    Type Description
    float

    kMinBladeCount

    The minimum blade count for the aperture diaphragm.

    Declaration
    public const int kMinBladeCount = 3
    Field Value
    Type Description
    int

    Properties

    anamorphism

    Stretches the sensor to simulate an anamorphic look. Positive values distort the Camera vertically, negative will distort the Camera horizontally.

    Declaration
    public float anamorphism { get; set; }
    Property Value
    Type Description
    float

    aperture

    The aperture number, in f-stop.

    Declaration
    public float aperture { get; set; }
    Property Value
    Type Description
    float

    barrelClipping

    The strength of the "cat eye" effect on bokeh (optical vignetting).

    Declaration
    public float barrelClipping { get; set; }
    Property Value
    Type Description
    float

    bladeCount

    The number of diaphragm blades.

    Declaration
    public int bladeCount { get; set; }
    Property Value
    Type Description
    int

    curvature

    Maps an aperture range to blade curvature.

    Declaration
    public Vector2 curvature { get; set; }
    Property Value
    Type Description
    Vector2

    focusDistance

    The focus distance of the lens. The Depth of Field Volume override uses this value if you set focusDistanceMode to FocusDistanceMode.Camera.

    Declaration
    public float focusDistance { get; set; }
    Property Value
    Type Description
    float

    iso

    The sensor sensitivity (ISO).

    Declaration
    public int iso { get; set; }
    Property Value
    Type Description
    int

    shutterSpeed

    The exposure time, in second.

    Declaration
    public float shutterSpeed { get; set; }
    Property Value
    Type Description
    float

    Methods

    CopyTo(HDPhysicalCamera)

    Copies the settings of this instance to another instance.

    Declaration
    [Obsolete("The CopyTo method is obsolete and does not work anymore. Use the assignement operator instead to get a copy of the HDPhysicalCamera parameters.", true)]
    public void CopyTo(HDPhysicalCamera c)
    Parameters
    Type Name Description
    HDPhysicalCamera c

    The instance to copy the settings to.

    GetDefaults()

    A set of default physical camera parameters.

    Declaration
    public static HDPhysicalCamera GetDefaults()
    Returns
    Type Description
    HDPhysicalCamera

    Returns a set of default physical camera parameters.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)