|
@ -119,7 +119,7 @@ namespace SemiColinGames { |
|
|
|
|
|
|
|
|
foreach (EffectPass pass in lightingEffect.CurrentTechnique.Passes) { |
|
|
foreach (EffectPass pass in lightingEffect.CurrentTechnique.Passes) { |
|
|
pass.Apply(); |
|
|
pass.Apply(); |
|
|
graphics.DrawIndexedPrimitives(PrimitiveType.TriangleList, 0, 0, indices.Length / 3); |
|
|
|
|
|
|
|
|
graphics.DrawIndexedPrimitives(PrimitiveType.TriangleList, 0, 0, indices.Length, 0, indices.Length / 3); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -141,7 +141,7 @@ namespace SemiColinGames { |
|
|
foreach (EffectPass pass in lightingEffect.CurrentTechnique.Passes) { |
|
|
foreach (EffectPass pass in lightingEffect.CurrentTechnique.Passes) { |
|
|
pass.Apply(); |
|
|
pass.Apply(); |
|
|
graphics.DrawIndexedPrimitives( |
|
|
graphics.DrawIndexedPrimitives( |
|
|
PrimitiveType.LineStrip, 0, 0, NUM_EDGE_VERTICES + 1); |
|
|
|
|
|
|
|
|
PrimitiveType.LineStrip, 0, 0, NUM_EDGE_VERTICES + 1, 0, NUM_EDGE_VERTICES + 1); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|