11 |
|
extern "C" { |
12 |
|
#endif |
13 |
|
|
14 |
< |
#ifdef NEWAMB |
14 |
> |
#ifndef OLDAMB |
15 |
|
|
16 |
|
/* |
17 |
|
* Normal and u-vector directions encoded using dircode.c |
22 |
|
float pos[3]; /* position in space */ |
23 |
|
int32 ndir; /* encoded surface normal */ |
24 |
|
int32 udir; /* u-vector direction */ |
25 |
< |
int lvl; /* recursion level of parent ray */ |
25 |
> |
short lvl; /* recursion level of parent ray */ |
26 |
|
float weight; /* weight of parent ray */ |
27 |
|
float rad[2]; /* anisotropic radii (rad[0] <= rad[1]) */ |
28 |
|
COLOR val; /* computed ambient value */ |
78 |
|
unsigned long latick; /* last accessed tick */ |
79 |
|
float pos[3]; /* position in space */ |
80 |
|
float dir[3]; /* normal direction */ |
81 |
< |
int lvl; /* recursion level of parent ray */ |
81 |
> |
short lvl; /* recursion level of parent ray */ |
82 |
|
float weight; /* weight of parent ray */ |
83 |
|
float rad; /* validity radius */ |
84 |
|
COLOR val; /* computed ambient value */ |