Struct HDPhysicalCamera
Holds the physical settings set on cameras.
Namespace: UnityEngine.Rendering.HighDefinition
Syntax
[Serializable]
public struct HDPhysicalCamera
Fields
kMaxAperture
The maximum allowed aperture.
Declaration
public const float kMaxAperture = 32F
Field Value
Type | Description |
---|---|
Single |
kMaxBladeCount
The maximum blade count for the aperture diaphragm.
Declaration
public const int kMaxBladeCount = 11
Field Value
Type | Description |
---|---|
Int32 |
kMinAperture
The minimum allowed aperture.
Declaration
public const float kMinAperture = 0.7F
Field Value
Type | Description |
---|---|
Single |
kMinBladeCount
The minimum blade count for the aperture diaphragm.
Declaration
public const int kMinBladeCount = 3
Field Value
Type | Description |
---|---|
Int32 |
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 |
---|---|
Single |
aperture
The aperture number, in f-stop.
Declaration
public float aperture { get; set; }
Property Value
Type | Description |
---|---|
Single |
barrelClipping
The strength of the "cat eye" effect on bokeh (optical vignetting).
Declaration
public float barrelClipping { get; set; }
Property Value
Type | Description |
---|---|
Single |
bladeCount
The number of diaphragm blades.
Declaration
public int bladeCount { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
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 |
---|---|
Single |
iso
The sensor sensitivity (ISO).
Declaration
public int iso { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
shutterSpeed
The exposure time, in second.
Declaration
public float shutterSpeed { get; set; }
Property Value
Type | Description |
---|---|
Single |
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. |