public virtual void Draw(Camera3D Camera) { //Model.Draw(World, Camera.View, Camera.Projection); foreach (ModelMesh Mesh in Model.Meshes) { foreach (BasicEffect effect in Mesh.Effects) { if (ApplyLight) { Light.ApplyLight(effect, position); } if (ApplyFog) { fog.ApplyFog(effect); } if (ApplyTexture) { effect.Texture = textureEffect; } effect.World = World; effect.View = Camera.View; effect.Projection = Camera.Projection; } Mesh.Draw(); } //Model.Draw(world, Camera.View, Camera.Projection); }