Original Post
I know that these concept will come up later in the workshop, but maybe someone can tell us what techniques and passes are.
What does the foreach part in the code actually mean? Thanks!
effect.View = view;
effect.Projection = projection;
Matrix world = Matrix.Identity;
effect.World = world;
effect.EnableDefaultLighting();
foreach (EffectPass pass in effect.CurrentTechnique.Passes)
{
pass.Apply();
graphics.GraphicsDevice.DrawUserPrimitives(PrimitiveType.TriangleList, vertices, 0, 1,
VertexPositionNormalTexture.VertexDeclaration);
}
What does the foreach part in the code actually mean? Thanks!