Exemple #1
0
        public void DrawTri(
            Texture2D texture,
            Vector3 Position,
            float radius,
            Color4 color,
            Vector2 texa,
            Vector2 texb,
            Vector2 texc,
            float angle,
            int layer,
            BlendMode blend = BlendMode.Normal
            )
        {
            rendat[billboardCount] = RenderData.CreateTri(
                texture,
                blend,
                (ushort)vertexCount
                );
            CreateTriBillboard(
                Position,
                radius,
                color,
                angle,
                texa,
                texb,
                texc,
                camera.View.GetRight(),
                camera.View.GetUp()
                );
            var z = RenderHelpers.GetZ(camera.Position, Position);

            buffer.AddCommand(
                this,
                rendat[billboardCount].GetHashCode(),
                billboardCount,
                layer,
                z
                );
            billboardCount++;
        }