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")]
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 (%)")]
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")]
public FloatParameter keyValue
Field Value
Type | Description |
---|---|
FloatParameter |
maxLuminance
Maximum average luminance to consider for auto exposure (in EV).
Declaration
[DisplayName("Maximum (EV)")]
public FloatParameter maxLuminance
Field Value
Type | Description |
---|---|
FloatParameter |
minLuminance
Minimum average luminance to consider for auto exposure (in EV).
Declaration
[DisplayName("Minimum (EV)")]
public FloatParameter minLuminance
Field Value
Type | Description |
---|---|
FloatParameter |
speedDown
The adaptation speed from a light to a dark environment.
Declaration
[Min(0F)]
public FloatParameter speedDown
Field Value
Type | Description |
---|---|
FloatParameter |
speedUp
The adaptation speed from a dark to a light environment.
Declaration
[Min(0F)]
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 |
---|---|
System.Boolean |
|