/// <summary> /// Draw the game: /// 1) Draw the terrain /// </summary> /// <param name="gameTime">Game Time</param> protected override void Draw(GameTime gameTime) { device.Clear(Color.SkyBlue); RasterizerState rs = new RasterizerState(); rs.CullMode = CullMode.None; //rs.FillMode = FillMode.WireFrame; device.RasterizerState = rs; effect.CurrentTechnique = effect.Techniques["ColoredNoShading"]; effect.Parameters["xView"].SetValue(viewMatrix); effect.Parameters["xProjection"].SetValue(projectionMatrix); effect.Parameters["xWorld"].SetValue(Matrix.Identity); GameTerrain.DrawTerrain(effect, device); Sea.DrawTerrain(effect, device); base.Draw(gameTime); }