예제 #1
0
 public void Draw(Matrix view, Matrix projection)
 {
     for (int s = 0; s < stars.Length; ++s)
     {
         game1.DrawModel(
             game1.sphereModel,
             Matrix.CreateScale(stars[s].W) *
             Matrix.CreateTranslation(stars[s].X, stars[s].Y, stars[s].Z),
             view,
             projection,
             game1.monochrome(1.0f), false);
     }
 }
예제 #2
0
 public Color monochrome(float value, float alpha = 1, float hue = 360, float saturation = 0)
 {
     return(game1.monochrome(value, alpha, hue, saturation));
 }