Beispiel #1
0
    private void fillShadow(double longitude, double latitude, Texture2D tex, Color color)
    {
        int x = (int)(512 * longitude / 180.0);
        int y = 512 + (int)(512 * latitude / 90.0);

        if (x < 0)
        {
            x += 1024;
        }

        if (y < 0)
        {
            y = 0;
        }
        else if (y > 1024)
        {
            y = 1024;
        }

        if (x < 0)
        {
            x = 0;
        }
        else if (x > 1024)
        {
            x = 1024;
        }

        LineSeed.paint(x, y, tex, color);
    }