Advertisement
Guest User

Untitled

a guest
Mar 13th, 2013
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. public override void Draw(GameTime gameTime)
  2. {
  3. Jeu.PériphériqueGraphique.GraphicsDevice.Viewport = Viewport;
  4. foreach (ModelMesh maille in Modèle.Meshes)
  5. {
  6. Matrix mondeLocal = TransformationsModèle[maille.ParentBone.Index] * GetMonde();
  7. foreach (ModelMeshPart portionDeMaillage in maille.MeshParts)
  8. {
  9. BasicEffect effet = (BasicEffect)portionDeMaillage.Effect;
  10. effet.EnableDefaultLighting();
  11. effet.Projection = CaméraJeu.DemiProjection;
  12. effet.View = CaméraJeu.Vue;
  13. effet.World = mondeLocal;
  14. }
  15. maille.Draw();
  16. }
  17. base.Draw(gameTime);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement