| 317 |
|
are placed search queue starting with the furthest photon at pmap -> |
| 318 |
|
squeue.node, and pmap -> squeue.tail being the number actually found. */ |
| 319 |
|
|
| 320 |
< |
void find1Photon (PhotonMap *pmap, const RAY *ray, Photon *photon); |
| 321 |
< |
/* Finds single closest photon to ray -> rop with similar normal. |
| 322 |
< |
Returns NULL if none found. */ |
| 320 |
> |
Photon *find1Photon (PhotonMap *pmap, const RAY *ray, Photon *photon); |
| 321 |
> |
/* Find single closest photon to ray -> rop with similar normal. |
| 322 |
> |
Return NULL if none found, else the supplied Photon* buffer, |
| 323 |
> |
indicating that it contains a valid photon. */ |
| 324 |
|
|
| 325 |
|
void getPhoton (PhotonMap *pmap, PhotonIdx idx, Photon *photon); |
| 326 |
|
/* Retrieve photon referenced by idx from pmap -> store */ |