Class Exposure
A volume component that holds settings for the Exposure effect.
Namespace: UnityEngine.Rendering.HighDefinition
Syntax
public sealed class Exposure : VolumeComponent, IPostProcessComponent
Fields
adaptationMode
Specifies the method that HDRP uses to change the exposure when the Camera moves from dark to light and vice versa. This parameter is only used when Automatic or CurveMapping is set.
Declaration
public AdaptationModeParameter adaptationMode
Field Value
Type | Description |
---|---|
AdaptationModeParameter |
adaptationSpeedDarkToLight
Sets the speed at which the exposure changes when the Camera moves from a dark area to a bright area. This parameter is only used when Automatic or CurveMapping is set.
Declaration
public MinFloatParameter adaptationSpeedDarkToLight
Field Value
Type | Description |
---|---|
MinFloatParameter |
adaptationSpeedLightToDark
Sets the speed at which the exposure changes when the Camera moves from a bright area to a dark area. This parameter is only used when Automatic or CurveMapping is set.
Declaration
public MinFloatParameter adaptationSpeedLightToDark
Field Value
Type | Description |
---|---|
MinFloatParameter |
centerAroundExposureTarget
Sets whether the procedural metering mask is centered around the exposure target (to be set on the camera)
Declaration
public BoolParameter centerAroundExposureTarget
Field Value
Type | Description |
---|---|
BoolParameter |
compensation
Sets the compensation that the Camera applies to the calculated exposure value. This parameter is only used when any mode but Fixed is set.
Declaration
public FloatParameter compensation
Field Value
Type | Description |
---|---|
FloatParameter |
curveMap
Specifies a curve that remaps the Scene exposure on the x-axis to the exposure you want on the y-axis. This parameter is only used when CurveMapping is set.
Declaration
public AnimationCurveParameter curveMap
Field Value
Type | Description |
---|---|
AnimationCurveParameter |
fixedExposure
Sets a static exposure value for Cameras in this Volume. This parameter is only used when Fixed is set.
Declaration
public FloatParameter fixedExposure
Field Value
Type | Description |
---|---|
FloatParameter |
histogramPercentages
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 won't contribute to the average luminance.
Declaration
public FloatRangeParameter histogramPercentages
Field Value
Type | Description |
---|---|
FloatRangeParameter |
histogramUseCurveRemapping
Sets whether histogram exposure mode will remap the computed exposure with a curve remapping (akin to Curve Remapping mode)
Declaration
public BoolParameter histogramUseCurveRemapping
Field Value
Type | Description |
---|---|
BoolParameter |
limitMax
Sets the maximum value that the Scene exposure can be set to. This parameter is only used when Automatic or CurveMapping is set.
Declaration
public FloatParameter limitMax
Field Value
Type | Description |
---|---|
FloatParameter |
limitMaxCurveMap
Specifies a curve that determines for each current exposure value (x-value) what maximum value is allowed to auto-adaptation (y-axis). This parameter is only used when CurveMapping is set.
Declaration
public AnimationCurveParameter limitMaxCurveMap
Field Value
Type | Description |
---|---|
AnimationCurveParameter |
limitMin
Sets the minimum value that the Scene exposure can be set to. This parameter is only used when Automatic or CurveMapping is set.
Declaration
public FloatParameter limitMin
Field Value
Type | Description |
---|---|
FloatParameter |
limitMinCurveMap
Specifies a curve that determines for each current exposure value (x-value) what minimum value is allowed to auto-adaptation (y-axis). This parameter is only used when CurveMapping is set.
Declaration
public AnimationCurveParameter limitMinCurveMap
Field Value
Type | Description |
---|---|
AnimationCurveParameter |
luminanceSource
Specifies the luminance source that HDRP uses to calculate the current Scene exposure.
Declaration
public LuminanceSourceParameter luminanceSource
Field Value
Type | Description |
---|---|
LuminanceSourceParameter |
See Also
maskMaxIntensity
All pixels above this threshold (in EV100 units) will be assigned a weight of 0 in the metering mask.
Declaration
public FloatParameter maskMaxIntensity
Field Value
Type | Description |
---|---|
FloatParameter |
maskMinIntensity
All pixels below this threshold (in EV100 units) will be assigned a weight of 0 in the metering mask.
Declaration
public FloatParameter maskMinIntensity
Field Value
Type | Description |
---|---|
FloatParameter |
meteringMode
Specifies the metering method that HDRP uses the filter the luminance source.
Declaration
public MeteringModeParameter meteringMode
Field Value
Type | Description |
---|---|
MeteringModeParameter |
See Also
mode
Specifies the method that HDRP uses to process exposure.
Declaration
public ExposureModeParameter mode
Field Value
Type | Description |
---|---|
ExposureModeParameter |
See Also
proceduralCenter
Sets the center of the procedural metering mask ([0,0] being bottom left of the screen and [1,1] top right of the screen)
Declaration
public NoInterpVector2Parameter proceduralCenter
Field Value
Type | Description |
---|---|
NoInterpVector2Parameter |
proceduralRadii
Sets the radii of the procedural mask, in terms of fraction of half the screen (i.e. 0.5 means a mask that stretch half of the screen in both directions).
Declaration
public NoInterpVector2Parameter proceduralRadii
Field Value
Type | Description |
---|---|
NoInterpVector2Parameter |
proceduralSoftness
Sets the softness of the mask, the higher the value the less influence is given to pixels at the edge of the mask.
Declaration
public NoInterpMinFloatParameter proceduralSoftness
Field Value
Type | Description |
---|---|
NoInterpMinFloatParameter |
targetMidGray
Sets the desired Mid gray level used by the auto exposure (i.e. to what grey value the auto exposure system maps the average scene luminance). Note that the lens model used in HDRP is not of a perfect lens, hence it will not map precisely to the selected value.
Declaration
public TargetMidGrayParameter targetMidGray
Field Value
Type | Description |
---|---|
TargetMidGrayParameter |
weightTextureMask
Sets the texture mask used to weight the pixels in the buffer when computing exposure.
Declaration
public NoInterpTextureParameter weightTextureMask
Field Value
Type | Description |
---|---|
NoInterpTextureParameter |
Methods
IsActive()
Tells if the effect needs to be rendered or not.
Declaration
public bool IsActive()
Returns
Type | Description |
---|---|
Boolean |
|