| # | Line 35 | Line 35 | |
|---|---|---|
| 35 | /* Primary photon ray for light source contributions */ | |
| 36 | typedef struct { | |
| 37 | short srcIdx; /* Index of emitting light source */ | |
| 38 | < | float dir [3], org [3]; /* Incident dir & origin on source */ |
| 38 | > | float dir [3], pos [3]; /* Incident dir & hit point */ |
| 39 | } PhotonPrimary; | |
| 40 | ||
| 41 | #define photonSrcIdx(pm, p) ((pm) -> primary [(p) -> primary].srcIdx) | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |