﻿using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;

[System.Serializable, VolumeComponentMenu("Snapshot Shaders Pro/GameBoy")]
public sealed class GameBoySettings : VolumeComponent, IPostProcessComponent
{
    [Tooltip("Is the effect active?")]
    public BoolParameter enabled = new BoolParameter(false);

    [Tooltip("Darkest colour.")]
    public ColorParameter darkestColor = new ColorParameter(new Color(0.11f, 0.21f, 0.08f));

    [Tooltip("Second darkest colour.")]
    public ColorParameter darkColor = new ColorParameter(new Color(0.24f, 0.38f, 0.21f));

    [Tooltip("Second lightest colour.")]
    public ColorParameter lightColor = new ColorParameter(new Color(0.57f, 0.67f, 0.21f));

    [Tooltip("Lightest colour.")]
    public ColorParameter lightestColor = new ColorParameter(new Color(0.75f, 0.82f, 0.46f));

    public bool IsActive()
    {
        return enabled.value && active;
    }

    public bool IsTileCompatible()
    {
        return false;
    }
}
