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.
19 lines
665 B
19 lines
665 B
2 years ago
|
using System;
|
||
|
|
||
|
namespace UnityEngine.Rendering.Universal
|
||
|
{
|
||
|
[Serializable, VolumeComponentMenuForRenderPipeline("Post-processing/Panini Projection", typeof(UniversalRenderPipeline))]
|
||
|
public sealed class PaniniProjection : VolumeComponent, IPostProcessComponent
|
||
|
{
|
||
|
[Tooltip("Panini projection distance.")]
|
||
|
public ClampedFloatParameter distance = new ClampedFloatParameter(0f, 0f, 1f);
|
||
|
|
||
|
[Tooltip("Panini projection crop to fit.")]
|
||
|
public ClampedFloatParameter cropToFit = new ClampedFloatParameter(1f, 0f, 1f);
|
||
|
|
||
|
public bool IsActive() => distance.value > 0f;
|
||
|
|
||
|
public bool IsTileCompatible() => false;
|
||
|
}
|
||
|
}
|