8 |
|
|
9 |
|
#include "tonemap.h" |
10 |
|
#include "rhdriver.h" |
11 |
+ |
|
12 |
+ |
#ifndef int2 |
13 |
+ |
#define int2 short |
14 |
+ |
#endif |
15 |
+ |
#ifndef int4 |
16 |
+ |
#define int4 long |
17 |
+ |
#endif |
18 |
|
/* child ordering */ |
19 |
|
#define DL 0 /* down left */ |
20 |
|
#define DR 1 /* down right */ |
40 |
|
|
41 |
|
extern struct rleaves { |
42 |
|
float (*wp)[3]; /* world intersection point array */ |
43 |
< |
short (*wd)[2]; /* world direction array */ |
43 |
> |
int4 *wd; /* world direction array */ |
44 |
|
TMbright *brt; /* encoded brightness array */ |
45 |
|
BYTE (*chr)[3]; /* encoded chrominance array */ |
46 |
|
BYTE (*rgb)[3]; /* tone-mapped color array */ |