You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.1 KiB
27 lines
1.1 KiB
using System; |
|
|
|
namespace UnityEngine.Rendering.Universal |
|
{ |
|
[Serializable, VolumeComponentMenuForRenderPipeline("Post-processing/Vignette", typeof(UniversalRenderPipeline))] |
|
public sealed class Vignette : VolumeComponent, IPostProcessComponent |
|
{ |
|
[Tooltip("Vignette color.")] |
|
public ColorParameter color = new ColorParameter(Color.black, false, false, true); |
|
|
|
[Tooltip("Sets the vignette center point (screen center is [0.5,0.5]).")] |
|
public Vector2Parameter center = new Vector2Parameter(new Vector2(0.5f, 0.5f)); |
|
|
|
[Tooltip("Amount of vignetting on screen.")] |
|
public ClampedFloatParameter intensity = new ClampedFloatParameter(0f, 0f, 1f); |
|
|
|
[Tooltip("Smoothness of the vignette borders.")] |
|
public ClampedFloatParameter smoothness = new ClampedFloatParameter(0.2f, 0.01f, 1f); |
|
|
|
[Tooltip("Should the vignette be perfectly round or be dependent on the current aspect ratio?")] |
|
public BoolParameter rounded = new BoolParameter(false); |
|
|
|
public bool IsActive() => intensity.value > 0f; |
|
|
|
public bool IsTileCompatible() => true; |
|
} |
|
}
|
|
|