import GfxLib.*;

public class Light
{
  public static final int AMBIENT     = 0;
  public static final int POINT       = 1;
  public static final int DIRECTIONAL = 2;

  public int type;
  public Point3D position;
  public float r, g, b;
  
  public Light(int type, 
	       float x, float y, float z, 
	       float r, float g, float b)
  {
    this.type     = type;
    this.position = new Point3D(x, y, z);
    if (this.type == DIRECTIONAL) this.position.normalize();
    this.r        = r;
    this.g        = g;
    this.b        = b;
  }
}
