您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
15 行
487 B
15 行
487 B
using System;
|
|
|
|
namespace UnityEngine.Rendering.Universal
|
|
{
|
|
[Serializable, VolumeComponentMenu("Post-processing/Chromatic Aberration")]
|
|
public sealed class ChromaticAberration : VolumeComponent, IPostProcessComponent
|
|
{
|
|
[Tooltip("Amount of tangential distortion.")]
|
|
public ClampedFloatParameter intensity = new ClampedFloatParameter(0f, 0f, 1f);
|
|
|
|
public bool IsActive() => intensity.value > 0f;
|
|
|
|
public bool IsTileCompatible() => false;
|
|
}
|
|
}
|