Beispiel #1
0
 public Photon(Point3 p, Vector3 n, Vector3 dir, Color power, Color diffuse)
 {
     x = p.x;
     y = p.y;
     z = p.z;
     this.dir = dir.encode();
     this.power = power.toRGBE();
     flags = 0;
     normal = n.encode();
     data = diffuse.toRGB();
 }