protected override void LoadContent()
{
LineEffect = new BasicEffect(Game.GraphicsDevice);
LineEffect.EnableDefaultLighting();
LineEffect.DiffuseColor = new Vector3(1, 1, 1);
LineEffect.VertexColorEnabled = true;
LineEffect.LightingEnabled = false;
LineEffect.TextureEnabled = false;
sphereVertices = new VertexPositionColor[18];
for (int i = 0; i <= 16; i++)
{
float angle = (float)Math.PI * 2.0f * (float)i / 16;
sphereVertices[i].Color = Color.GreenYellow;
sphereVertices[i].Position = new Vector3(Sin(angle), Cos(angle), 0);
}
sphereVertices[17].Color = Color.GreenYellow;
sphereVertices[17].Position = Vector3.Zero;
Matrix terrainWorld = Matrix.CreateScale(0.03f);
spriteBatch = new SpriteBatch(Game.GraphicsDevice);
whiteTexture = new Texture2D(Game.GraphicsDevice,1,1,false,SurfaceFormat.Color);
whiteTexture.SetData(new Color[1]
{
Color.White
});
WaterRenderer.LoadContent();
base.LoadContent();
}