CameraAttributes
Parent class for camera settings.
Parent class for camera settings.
Controls camera-specific attributes such as depth of field and exposure override.
When used in a WorldEnvironment it provides default settings for exposure, auto-exposure, and depth of field that will be used by all cameras without their own CameraAttributes, including the editor camera. When used in a Camera3D it will override any CameraAttributes set in the WorldEnvironment. When used in VoxelGI or LightmapGI, only the exposure settings will be used.
See also Environment for general 3D environment settings.
This is a pure virtual class that is inherited by CameraAttributesPhysical and CameraAttributesPractical.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
CameraAttributesConstructor
public CameraAttributes();Properties5
AutoExposureEnabledProperty
public bool AutoExposureEnabled { get; set; }If true, enables the tonemapping auto exposure mode of the scene renderer. If true, the renderer will automatically determine the exposure setting to adapt to the scene's illumination and the observed light.
Note: Auto-exposure is only supported in the Forward+ rendering method, not Mobile or Compatibility.
AutoExposureScaleProperty
public float AutoExposureScale { get; set; }The scale of the auto exposure effect. Affects the intensity of auto exposure.
AutoExposureSpeedProperty
public float AutoExposureSpeed { get; set; }The speed of the auto exposure effect. Affects the time needed for the camera to perform auto exposure.
ExposureMultiplierProperty
public float ExposureMultiplier { get; set; }Explicit camera lighting-normalization multiplier, active with physical light units enabled or disabled. Not an EV stop count and not the same control as Environment.TonemapExposure. Unshaded ALBEDO bypasses this normalization in the tested Forward+ path.
ExposureSensitivityProperty
public float ExposureSensitivity { get; set; }ISO sensitivity. In CameraAttributesPhysical with physical units enabled and fixed exposure, 100 to 200 doubles light normalization. Ignored for physical normalization when that mode is disabled. Does not add sensor noise; auto exposure can change the observed result.
Methods10
GetAutoExposureScalefloat
public float GetAutoExposureScale();floatGetAutoExposureSpeedfloat
public float GetAutoExposureSpeed();floatGetExposureMultiplierfloat
public float GetExposureMultiplier();Returns the current ExposureMultiplier value. Explicit camera lighting-normalization multiplier, active with physical light units enabled or disabled. Not an EV stop count and not the same control as Environment.TonemapExposure. Unshaded ALBEDO bypasses this normalization in the tested Forward+ path.
floatCurrent ExposureMultiplier value in the units described for that property.
GetExposureSensitivityfloat
public float GetExposureSensitivity();Returns the current ExposureSensitivity value. ISO sensitivity. In CameraAttributesPhysical with physical units enabled and fixed exposure, 100 to 200 doubles light normalization. Ignored for physical normalization when that mode is disabled. Does not add sensor noise; auto exposure can change the observed result.
floatCurrent ExposureSensitivity value in the units described for that property.
IsAutoExposureEnabledbool
public bool IsAutoExposureEnabled();boolSetAutoExposureEnabledvoid
public void SetAutoExposureEnabled(bool enabled);| Name | Type | Default |
|---|---|---|
enabled | bool | — |
SetAutoExposureScalevoid
public void SetAutoExposureScale(float exposureGrey);| Name | Type | Default |
|---|---|---|
exposureGrey | float | — |
SetAutoExposureSpeedvoid
public void SetAutoExposureSpeed(float exposureSpeed);| Name | Type | Default |
|---|---|---|
exposureSpeed | float | — |
SetExposureMultipliervoid
public void SetExposureMultiplier(float multiplier);Sets ExposureMultiplier. Explicit camera lighting-normalization multiplier, active with physical light units enabled or disabled. Not an EV stop count and not the same control as Environment.TonemapExposure. Unshaded ALBEDO bypasses this normalization in the tested Forward+ path.
| Name | Type | Default |
|---|---|---|
multiplier | float | — |
multiplierExplicit camera lighting-normalization multiplier, active with physical light units enabled or disabled. Not an EV stop count and not the same control as Environment.TonemapExposure. Unshaded ALBEDO bypasses this normalization in the tested Forward+ path.
SetExposureSensitivityvoid
public void SetExposureSensitivity(float sensitivity);Sets ExposureSensitivity. ISO sensitivity. In CameraAttributesPhysical with physical units enabled and fixed exposure, 100 to 200 doubles light normalization. Ignored for physical normalization when that mode is disabled. Does not add sensor noise; auto exposure can change the observed result.
| Name | Type | Default |
|---|---|---|
sensitivity | float | — |
sensitivityISO sensitivity. In CameraAttributesPhysical with physical units enabled and fixed exposure, 100 to 200 doubles light normalization. Ignored for physical normalization when that mode is disabled. Does not add sensor noise; auto exposure can change the observed result.