SHARE
TWEET

Untitled

a guest Aug 9th, 2018 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.                 }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top