public SkeletonMeshRenderer (GraphicsDevice device) { this.device = device; batcher = new MeshBatcher(); 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; }
public SkeletonMeshRenderer(GraphicsDevice device) { this.device = device; batcher = new MeshBatcher(); 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; }