Exemple #1
0
        public SkeletonRenderer(GraphicsDevice device)
        {
            this.device = device;

            batcher = new SpriteBatcher();

            effect                    = new BasicEffect(device);
            effect.World              = Matrix.Identity;
            effect.View               = Matrix.CreateLookAt(new Vector3(0.0f, 0.0f, 1.0f), Vector3.Zero, Vector3.Up);
            effect.TextureEnabled     = true;
            effect.VertexColorEnabled = true;

            rasterizerState          = new RasterizerState();
            rasterizerState.CullMode = CullMode.None;

            Bone.yDown = true;
        }