Firstborn/Library/PackageCache/com.unity.postprocessing@3.2.2/Documentation~/Vignette.md

53 lines
2.1 KiB
Markdown
Raw Normal View History

2023-03-28 13:24:16 -04:00
# Vignette
The **Vignette** effect darkens the edges of an image. This simulates the effect in a real-world camera lens caused by thick or stacked filters, secondary lenses, or an improper lens hood. You can use the **Vignette** effect to draw attention to the center of an image.
![Scene without Vignette](images\PostProcessing-Vignette-1.png)
![Scene with Vignette](images\PostProcessing-Vignette-2.png)
The Vignette effect in the post-processing stack has two modes:
- [Classic](#classic)
- [Masked](#masked)
<a name="classic"></a>
## Classic
**Classic** mode has parametric controls for the position, shape and intensity of the Vignette. This is the most common way to use the effect.
![](images\vignette-1.png)
### Properties
| Property | Function |
| :-------------- | :------------------------------------------------------------ |
| Color | Set the color of the Vignette. |
| Center | Set the Vignette center point (screen center is [0.5,0.5]). |
| Intensity | Set the amount of vignetting on screen. |
| Smoothness | Set the smoothness of the Vignette borders. |
| Roundness | Set the value to round the Vignette. Lower values will make a more squared vignette. |
| Rounded | Enable this checkbox to make the vignette perfectly round. When disable, the Vignette effect is dependent on the current aspect ratio. |
<a name="masked"></a>
## Masked
**Masked** mode uses a custom texture mask and multiplies it over the scene to create a Vignette effect. This mode can be used to create less common or irregular vignetting effects.
![](images/vignette-2.png)
### Properties
| Property | Function |
| :------------- | :------------------------------------------------------- |
| Color | Set the color of the Vignette. Use the alpha channel for transparency. |
| Mask | Select a black and white mask to use as a vignette. |
| Intensity | Set the mask opacity value. |
### Requirements
- Shader Model 3