Compare commits
No commits in common. "06eac128c28d7b0938a01e40704a616aabfa6d37" and "9504c2236c2afa63d34bfcd8fdd5382ea95bbae6" have entirely different histories.
06eac128c2
...
9504c2236c
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -86,7 +86,9 @@ namespace SemiColinGames {
|
||||
|
||||
// Draw lines of sight.
|
||||
basicEffect.Projection = camera.Projection;
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user