Class ChromaticAberration
This class holds settings for the Chromatic Aberration effect.
Inherited Members
Namespace: UnityEngine.Rendering.PostProcessing
Assembly: Unity.Postprocessing.Runtime.dll
Syntax
[Serializable]
public sealed class ChromaticAberration : PostProcessEffectSettings
Fields
fastMode
If true, it will use a faster variant of the effect for improved performances.
Declaration
[FormerlySerializedAs("mobileOptimized")]
[Tooltip("Boost performances by lowering the effect quality. This settings is meant to be used on mobile and other low-end platforms but can also provide a nice performance boost on desktops and consoles.")]
public BoolParameter fastMode
Field Value
| Type | Description |
|---|---|
| BoolParameter |
intensity
The amount of tangential distortion.
Declaration
[Range(0, 1)]
[Tooltip("Amount of tangential distortion.")]
public FloatParameter intensity
Field Value
| Type | Description |
|---|---|
| FloatParameter |
spectralLut
A texture used for custom fringing color (it will use a default one when null).
Declaration
[Tooltip("Shifts the hue of chromatic aberrations.")]
public TextureParameter spectralLut
Field Value
| Type | Description |
|---|---|
| TextureParameter |
Methods
IsEnabledAndSupported(PostProcessRenderContext)
Returns true if the effect is currently enabled and supported.
Declaration
public override bool IsEnabledAndSupported(PostProcessRenderContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| PostProcessRenderContext | context | The current post-processing render context |
Returns
| Type | Description |
|---|---|
| bool |
|