Rasagar/Library/PackageCache/com.unity.render-pipelines.high-definition/Documentation~/Post-Processing-Panini-Projection.md
2024-08-26 23:07:20 +03:00

24 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Panini Projection
This effect helps you to render perspective views in Scenes with a large field of view. Panini projection is a cylindrical projection, which means that it keeps vertical straight lines straight and vertical. Unlike other cylindrical projections, panini projection keeps radial lines through the center of the image straight too.
For more information about panini projection, see PanoTools wiki documentation on [General Panini Projection](https://wiki.panotools.org/The_General_Panini_Projection).
## Using Panini Projection
**Panini Projection** uses the [Volume](understand-volumes.md) framework, so to enable and modify **Panini Projection** properties, you must add a **Panini Projection** override to a [Volume](understand-volumes.md) in your Scene. To add **Panini Projection** to a Volume:
1. In the Scene or Hierarchy view, select a GameObject that contains a Volume component to view it in the Inspector.
2. In the Inspector, go to **Add Override** > **Post-processing** and select **Panini Projection**. HDRP now applies **Panini Projection** to any Camera this Volume affects.
[!include[](snippets/volume-override-api.md)]
## Properties
![](Images/Post-processingPaniniProjection1.png)
| **Property** | **Description** |
| --------------- | ------------------------------------------------------------ |
| **Distance** | Use the slider to set the strength of the distortion. |
| **Crop to Fit** | Use the slider to crop the distortion to fit the screen. A value of 1 crops the distortion to the edge of the screen, but results in a loss of precision in the center if you set **Distance** to a high value. |