docs.unity3d.com
    显示 / 隐藏目录

    Class Vignette

    A volume component that holds settings for the Vignette effect.

    Inheritance
    Object
    VolumeComponent
    Vignette
    Inherited Members
    VolumeComponent.active
    VolumeComponent.OnEnable()
    VolumeComponent.OnDisable()
    VolumeComponent.Override(VolumeComponent, Single)
    VolumeComponent.SetAllOverridesTo(Boolean)
    VolumeComponent.GetHashCode()
    VolumeComponent.AnyPropertiesIsOverridden()
    VolumeComponent.OnDestroy()
    VolumeComponent.Release()
    VolumeComponent.displayName
    VolumeComponent.parameters
    Namespace: UnityEngine.Rendering.HighDefinition
    Syntax
    [Serializable]
    [VolumeComponentMenu("Post-processing/Vignette")]
    [HelpURL("https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@10.10/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
    Vector2Parameter

    color

    Specifies the color of the vignette.

    Declaration
    [Tooltip("Specifies the color of the vignette.")]
    public ColorParameter color
    Field Value
    Type Description
    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
    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
    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
    VignetteMode

    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
    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
    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
    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
    ClampedFloatParameter

    Methods

    IsActive()

    Tells if the effect needs to be rendered or not.

    Declaration
    public bool IsActive()
    Returns
    Type Description
    Boolean

    true if the effect should be rendered, false otherwise.

    Implements
    IPostProcessComponent.IsActive()
    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)