9 |
|
* in the surface plane pointed to the right as seen from the front. |
10 |
|
* This means the Y-axis is "up" and the Z-axis is the surface normal. |
11 |
|
* |
12 |
+ |
* Note that we reverse the identification of "front" and "back" from |
13 |
+ |
* the conventions used in WINDOW 6. "Front" in our library points |
14 |
+ |
* in the +Z direction, towards the interior of the space rather |
15 |
+ |
* than the exterior. |
16 |
+ |
* |
17 |
|
* BSDF vectors always oriented away from surface, even when "incident." |
18 |
|
* |
19 |
|
* Created by Greg Ward on 1/10/11. |
45 |
|
#define SDsampAll 0xF /* include everything */ |
46 |
|
|
47 |
|
/* Projected solid angle query flags fos SDsizeBSDF() */ |
48 |
< |
#define SDqueryInc 0x1 /* query incoming vector */ |
49 |
< |
#define SDqueryOut 0x2 /* query outgoing vector */ |
50 |
< |
#define SDqueryMin 0x4 /* query minimum proj. solid angle */ |
46 |
< |
#define SDqueryMax 0x8 /* query maximum proj. solid angle */ |
48 |
> |
#define SDqueryVal 0x0 /* query single value */ |
49 |
> |
#define SDqueryMin 0x1 /* query minimum proj. solid angle */ |
50 |
> |
#define SDqueryMax 0x2 /* query maximum proj. solid angle */ |
51 |
|
|
52 |
|
/* Error codes: normal return, out of memory, file i/o, file format, bad argument, |
53 |
|
bad data, unsupported feature, internal error, unknown error */ |