photons[y][x]
r = pmap[y+ry][x+rx];if (!r || (r>>8)>=NPART) continue;
r = pmap[y+ry][x+rx];if (!r || (r>>8)>=NPART) r = photons[y+ry][x+rx];if (!r || (r>>8)>=NPART) continue;