Class LensDistortion
This class holds settings for the Lens Distortion effect.
Inherited Members
Namespace: UnityEngine.Rendering.PostProcessing
Syntax
public sealed class LensDistortion : PostProcessEffectSettings
Fields
centerX
The center point for the distortion (x-axis).
Declaration
public FloatParameter centerX
Field Value
Type | Description |
---|---|
FloatParameter |
centerY
The center point for the distortion (y-axis).
Declaration
public FloatParameter centerY
Field Value
Type | Description |
---|---|
FloatParameter |
intensity
The total amount of distortion to apply.
Declaration
public FloatParameter intensity
Field Value
Type | Description |
---|---|
FloatParameter |
intensityX
Multiplies the intensity value on the x-axis. Setting this value to 0 will disable distortion on this axis.
Declaration
public FloatParameter intensityX
Field Value
Type | Description |
---|---|
FloatParameter |
intensityY
Multiplies the intensity value on the y-axis. Setting this value to 0 will disable distortion on this axis.
Declaration
public FloatParameter intensityY
Field Value
Type | Description |
---|---|
FloatParameter |
scale
A global screen scaling factor.
Declaration
public FloatParameter scale
Field Value
Type | Description |
---|---|
FloatParameter |
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 |
---|---|
Boolean |
|