| 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) |
| 53 |
|
COLR flux; /* Photon flux */ |
| 54 |
|
#endif |
| 55 |
|
|
| 56 |
< |
unsigned primary; /* Index to primary ray */ |
| 56 |
> |
uint32 primary; /* Index to primary ray */ |
| 57 |
|
} Photon; |
| 58 |
|
|
| 59 |
|
/* Photon flag bitmasks and manipulation macros */ |