Class HDPhysicalCamera
Holds the physical settings set on cameras.
Namespace: UnityEngine.Rendering.HighDefinition
Syntax
[Serializable]
public class 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 |
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
public void CopyTo(HDPhysicalCamera c)
Parameters
Type | Name | Description |
---|---|---|
HDPhysicalCamera | c | The instance to copy the settings to. |