//Update the lighting on the landscape public void Update(GameTime gameTime, Vector3 light) { var time = (float)gameTime.TotalGameTime.TotalSeconds; basicEffect.AmbientLightColor = gameaccess.ambient(); basicEffect.DirectionalLight0.Enabled = true; basicEffect.DirectionalLight0.DiffuseColor = gameaccess.diffuse(); basicEffect.DirectionalLight0.Direction = light; basicEffect.DirectionalLight0.SpecularColor = gameaccess.specular(); }