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

    Class PaniniProjection

    A volume component that holds settings for the Panini Projection effect.

    Inheritance
    Object
    VolumeComponent
    PaniniProjection
    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/Panini Projection")]
    [HelpURL("https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@10.10/manual/Post-Processing-Panini-Projection.html")]
    public sealed class PaniniProjection : VolumeComponent, IPostProcessComponent

    Fields

    cropToFit

    Controls how much cropping HDRP applies to the screen with the panini projection effect. A value of 1 crops the distortion to the edge of the screen.

    Declaration
    [Tooltip("Controls how much cropping HDRP applies to the screen with the panini projection effect. A value of 1 crops the distortion to the edge of the screen.")]
    public ClampedFloatParameter cropToFit
    Field Value
    Type Description
    ClampedFloatParameter

    distance

    Controls the panini projection distance. This controls the strength of the distorion.

    Declaration
    [Tooltip("Controls the panini projection distance. This controls the strength of the distorion.")]
    public ClampedFloatParameter distance
    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)