Advertisement
Guest User

Untitled

a guest
Aug 9th, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.75 KB | None | 0 0
  1. Effect.Parameters["World"].SetValue(World);
  2.                 Effect.Parameters["View"].SetValue(GameGlobals.View);
  3.                 Effect.Parameters["Projection"].SetValue(GameGlobals.Projection);
  4.                 Effect.Parameters["xTexture"].SetValue(Game1.ResourceManager.GetTexture("mapset"));
  5.  
  6.                 foreach (EffectPass pass in Effect.CurrentTechnique.Passes)
  7.                 {
  8.                         pass.Apply();
  9.  
  10.                     graphicsManager.GraphicsDevice.Indices = IndexBuffer;
  11.                     graphicsManager.GraphicsDevice.SetVertexBuffer(VertexBuffer);
  12.  
  13.                     graphicsManager.GraphicsDevice.DrawIndexedPrimitives(PrimitiveType.TriangleList, 0, 0, Vertices.Count, 0, Indexes.Count / 3);
  14.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement