Exemplo n.º 1
0
        public override UnityEngine.Color GetColour(double x, double y)
        {
            // Read L:
            float l = (float)LightModule.GetValue(x, y);

            // Read A:
            float a = (float)AModule.GetValue(x, y);

            // Read B:
            float b = (float)BModule.GetValue(x, y);

            // Convert to RGB:
            LabRgb.ToRgb(ref l, ref a, ref b);

            // Now RGB.
            return(new Color(l, a, b, 1f));
        }