Class Vignette
A volume component that holds settings for the Vignette effect.
Inherited Members
Namespace: UnityEngine.Rendering.HighDefinition
Syntax
[Serializable]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@10.3/manual/Post-Processing-Vignette.html")]
public sealed class Vignette : VolumeComponent, IPostProcessComponent
Fields
center
Sets the center point for the vignette.
Declaration
[Tooltip("Sets the center point for the vignette.")]
public Vector2Parameter center
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.Vector2Parameter |
color
Specifies the color of the vignette.
Declaration
[Tooltip("Specifies the color of the vignette.")]
public ColorParameter color
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.ColorParameter |
intensity
Controls the strength of the vignette effect.
Declaration
[Tooltip("Controls the strength of the vignette effect.")]
public ClampedFloatParameter intensity
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.ClampedFloatParameter |
mask
Specifies a black and white mask Texture to use as a vignette.
Declaration
[Tooltip("Specifies a black and white mask Texture to use as a vignette.")]
public TextureParameter mask
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.TextureParameter |
mode
Specifies the mode HDRP uses to display the vignette effect.
Declaration
[Tooltip("Specifies the mode HDRP uses to display the vignette effect.")]
public VignetteModeParameter mode
Field Value
Type | Description |
---|---|
VignetteModeParameter |
See Also
opacity
Controls the opacity of the mask vignette. Lower values result in a more transparent vignette.
Declaration
[Range(0F, 1F)]
[Tooltip("Controls the opacity of the mask vignette. Lower values result in a more transparent vignette.")]
public ClampedFloatParameter opacity
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.ClampedFloatParameter |
rounded
When enabled, the vignette is perfectly round. When disabled, the vignette matches shape with the current aspect ratio.
Declaration
[Tooltip("When enabled, the vignette is perfectly round. When disabled, the vignette matches shape with the current aspect ratio.")]
public BoolParameter rounded
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.BoolParameter |
roundness
Controls how round the vignette is, lower values result in a more square vignette.
Declaration
[Tooltip("Controls how round the vignette is, lower values result in a more square vignette.")]
public ClampedFloatParameter roundness
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.ClampedFloatParameter |
smoothness
Controls the smoothness of the vignette borders.
Declaration
[Tooltip("Controls the smoothness of the vignette borders.")]
public ClampedFloatParameter smoothness
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.ClampedFloatParameter |
Methods
IsActive()
Tells if the effect needs to be rendered or not.
Declaration
public bool IsActive()
Returns
Type | Description |
---|---|
Boolean |
|