public void draw(Camera camera, GraphicsDevice device) { skybox.Draw(device, camera); //device.DepthStencilState = DepthStencilState.None; device.BlendState = BlendState.AlphaBlend; for (int i = 0; i < SIZE; ++i) { for (int j = 0; j < SIZE; ++j) { if (mapData[i][j] == '-') { continue; } ModelObject g = ground[i][j]; if (g != null) { g.Draw(camera); } ModelObject m = mapObjects[i][j]; if (m != null) { m.Draw(camera); } } } //device.DepthStencilState = DepthStencilState.Default; device.BlendState = BlendState.Opaque; }
public virtual void draw(Camera camera) { model.Draw(camera); }