示例#1
0
        public override double GetValue(double x, double y)
        {
            // Act like intensity:
            double sum = RedModule.GetValue(x, y);

            sum += GreenModule.GetValue(x, y);
            sum += BlueModule.GetValue(x, y);

            return(sum / 3.0);
        }
示例#2
0
        public override UnityEngine.Color GetColour(double x, double y)
        {
            // Read R:
            float r = (float)RedModule.GetValue(x, y);

            // Read G:
            float g = (float)GreenModule.GetValue(x, y);

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

            return(new Color(r, g, b, 1f));
        }