docs.unity3d.com
    Show / Hide Table of Contents

    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]
    [VolumeComponentMenuForRenderPipeline("Post-processing/Panini Projection", new Type[]{typeof(HDRenderPipeline)})]
    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()
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023