Example #1
0
        public static Positioned[] Billboard(float size)
        {
            Positioned[] b = new Positioned[4];

            b[0].Position.X = -size;
            b[0].Position.Y = size;
            b[1].Position.X = size;
            b[1].Position.Y = size;
            b[2].Position.X = size;
            b[2].Position.Y = -size;
            b[3].Position.X = -size;
            b[3].Position.Y = -size;
            b[0].Position.Z = b[1].Position.Z = b[2].Position.Z = b[3].Position.Z = 0.0f;

            return b;
        }
Example #2
0
        public static Positioned[] Billboard(float size)
        {
            Positioned[] b = new Positioned[4];

            b[0].Position.X = -size;
            b[0].Position.Y = size;
            b[1].Position.X = size;
            b[1].Position.Y = size;
            b[2].Position.X = size;
            b[2].Position.Y = -size;
            b[3].Position.X = -size;
            b[3].Position.Y = -size;
            b[0].Position.Z = b[1].Position.Z = b[2].Position.Z = b[3].Position.Z = 0.0f;

            return(b);
        }