Class AutoExposure
This class holds settings for the Auto Exposure effect.
Inherited Members
Namespace: UnityEngine.Rendering.PostProcessing
Syntax
[Serializable]
public sealed class AutoExposure : PostProcessEffectSettings
Fields
eyeAdaptation
The type of eye adaptation to use.
Declaration
[DisplayName("Type")]
[Tooltip("Use \"Progressive\" if you want auto exposure to be animated. Use \"Fixed\" otherwise.")]
public EyeAdaptationParameter eyeAdaptation
Field Value
Type | Description |
---|---|
EyeAdaptationParameter |
filtering
These values are the lower and upper percentages of the histogram that will be used to find a stable average luminance. Values outside of this range will be discarded and wont contribute to the average luminance.
Declaration
[MinMax(1F, 99F)]
[DisplayName("Filtering (%)")]
[Tooltip("Filters the bright and dark parts of the histogram when computing the average luminance. This is to avoid very dark pixels and very bright pixels from contributing to the auto exposure. Unit is in percent.")]
public Vector2Parameter filtering
Field Value
Type | Description |
---|---|
Vector2Parameter |
keyValue
Middle-grey value. Use this to compensate the global exposure of the scene.
Declaration
[Min(0F)]
[DisplayName("Exposure Compensation")]
[Tooltip("Use this to scale the global exposure of the scene.")]
public FloatParameter keyValue
Field Value
Type | Description |
---|---|
FloatParameter |
maxLuminance
Maximum average luminance to consider for auto exposure (in EV).
Declaration
[Range(-9F, 9F)]
[DisplayName("Maximum (EV)")]
[Tooltip("Maximum average luminance to consider for auto exposure. Unit is EV.")]
public FloatParameter maxLuminance
Field Value
Type | Description |
---|---|
FloatParameter |
minLuminance
Minimum average luminance to consider for auto exposure (in EV).
Declaration
[Range(-9F, 9F)]
[DisplayName("Minimum (EV)")]
[Tooltip("Minimum average luminance to consider for auto exposure. Unit is EV.")]
public FloatParameter minLuminance
Field Value
Type | Description |
---|---|
FloatParameter |
speedDown
The adaptation speed from a light to a dark environment.
Declaration
[Min(0F)]
[Tooltip("Adaptation speed from a light to a dark environment.")]
public FloatParameter speedDown
Field Value
Type | Description |
---|---|
FloatParameter |
speedUp
The adaptation speed from a dark to a light environment.
Declaration
[Min(0F)]
[Tooltip("Adaptation speed from a dark to a light environment.")]
public FloatParameter speedUp
Field Value
Type | Description |
---|---|
FloatParameter |
Methods
IsEnabledAndSupported(PostProcessRenderContext)
Returns true
if the effect is currently enabled and supported.
Declaration
public override bool IsEnabledAndSupported(PostProcessRenderContext context)
Parameters
Type | Name | Description |
---|---|---|
PostProcessRenderContext | context | The current post-processing render context |
Returns
Type | Description |
---|---|
Boolean |
|