Compare commits

..

No commits in common. "06eac128c28d7b0938a01e40704a616aabfa6d37" and "9504c2236c2afa63d34bfcd8fdd5382ea95bbae6" have entirely different histories.

2 changed files with 7 additions and 3 deletions

View File

@ -19,7 +19,7 @@ namespace SemiColinGames {
// The number of total triangles drawn is one less than the number of edge points.
readonly int[] indices = new int[(NUM_EDGE_VERTICES - 1) * 3];
Color color = Color.FromNonPremultiplied(new Vector4(1, 0, 0, 0.5f));
Color color = Color.FromNonPremultiplied(new Vector4(0, 0, 1, 0.6f));
public LinesOfSight(GraphicsDevice graphics) {
for (int i = 0; i < MAX_NPCS; i++) {
@ -88,7 +88,9 @@ namespace SemiColinGames {
}
}
coneVertices[index][i + 1] = new VertexPositionColor(new Vector3(closestHit, 0), color);
float tint = 0.6f - hitTime / 2;
Color tinted = Color.FromNonPremultiplied(new Vector4(0, 0, 1, tint));
coneVertices[index][i + 1] = new VertexPositionColor(new Vector3(closestHit, 0), tinted);
}
}

View File

@ -86,7 +86,9 @@ namespace SemiColinGames {
// Draw lines of sight.
basicEffect.Projection = camera.Projection;
world.LinesOfSight.Draw(graphics, basicEffect);
if (Debug.Enabled) {
world.LinesOfSight.Draw(graphics, basicEffect);
}
// Set up transformation matrix for drawing world objects.
Matrix transform = Matrix.CreateTranslation(-camera.Left, -camera.Top, 0);