using UnityEngine;

public class DotTintedLight : MonoBehaviour
{
    [SerializeField] float _min, _max;
    [SerializeField] DotProductDisplay _dotProductDisplay;
    void Update()
    {
        float pct = (_dotProductDisplay.Dot + 1) / 2f;
        float value = Mathf.Lerp(_min, _max, pct);
        GetComponent<Light>().colorTemperature = value;
    }
}