Rasagar/Library/PackageCache/com.unity.render-pipelines.high-definition/Documentation~/Post-Processing-Vignette.md

27 lines
2.8 KiB
Markdown
Raw Normal View History

2024-08-26 13:07:20 -07:00
# Vignette
In Photography, vignetting is the term for the darkening or desaturating towards the edges of an image compared to the center. In real life, thick or stacked filters, secondary lenses, and improper lens hoods are usually the cause of this effect. You can use vignetting to draw focus to the center of an image.
## Using Vignette
**Vignette** uses the [Volume](understand-volumes.md) framework, so to enable and modify **Vignette** properties, you must add a **Vignette** override to a [Volume](understand-volumes.md) in your Scene. To add **Vignette** to a Volume:
1. In the Scene or Hierarchy view, select a GameObject that contains a Volume component to view it in the Inspector.
2. In the Inspector, go to **Add Override** > **Post-processing** and select **Vignette**. HDRP now applies **Vignette** to any Camera this Volume affects.
[!include[](snippets/volume-override-api.md)]
## Properties
| **Property** | **Description** |
| -------------- | ------------------------------------------------------------ |
| **Mode** | Use the drop-down to select the vignette display mode.<br />&#8226; **Procedural**: Select this mode to expose properties that control the position, shape, and intensity of the vignette.<br />&#8226;**Masked**: Select this mode to use a texture mask to create a custom vignette effect. Use this mode to achieve irregular vignetting effects. |
| **Color** | Use the color picker to set the color of the vignette. |
| **Center** | Set the vignette center point. For reference, the screen center is [0.5, 0.5].<br />This property only appears when you select **Procedural** from the **Mode** drop-down. |
| **Intensity** | Use the slider to set the strength of the vignette effect.<br />This property only appears when you select **Procedural** from the **Mode** drop-down. |
| **Smoothness** | Use the slider to set the smoothness of the vignette borders.<br />This property only appears when you select **Procedural** from the **Mode** drop-down. |
| **Roundness** | Use the slider to set the roundness of the vignette. Higher values result in a more round vignette.<br />This property only appears when you select **Procedural** from the **Mode** drop-down. |
| **Rounded** | Enable the checkbox to make the vignette perfectly round. Disable the checkbox to make the vignette match the shape on the current aspect ratio.<br />This property only appears when you select **Procedural** from the **Mode** drop-down. |
| **Mask** | Assign a Texture to use as the vignette. This should be a black and white mask.<br />This property only appears when you select **Masked** from the **Mode** drop-down. |
| **Opacity** | Use the slider to set the opacity of the mask vignette.<br />This property only appears when you select **Masked** from the **Mode** drop-down. |