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.
22 lines
871 B
22 lines
871 B
2 years ago
|
using System;
|
||
|
|
||
|
namespace UnityEngine.Rendering.Universal
|
||
|
{
|
||
|
[Serializable, VolumeComponentMenuForRenderPipeline("Post-processing/Split Toning", typeof(UniversalRenderPipeline))]
|
||
|
public sealed class SplitToning : VolumeComponent, IPostProcessComponent
|
||
|
{
|
||
|
[Tooltip("The color to use for shadows.")]
|
||
|
public ColorParameter shadows = new ColorParameter(Color.grey, false, false, true);
|
||
|
|
||
|
[Tooltip("The color to use for highlights.")]
|
||
|
public ColorParameter highlights = new ColorParameter(Color.grey, false, false, true);
|
||
|
|
||
|
[Tooltip("Balance between the colors in the highlights and shadows.")]
|
||
|
public ClampedFloatParameter balance = new ClampedFloatParameter(0f, -100f, 100f);
|
||
|
|
||
|
public bool IsActive() => shadows != Color.grey || highlights != Color.grey;
|
||
|
|
||
|
public bool IsTileCompatible() => true;
|
||
|
}
|
||
|
}
|