ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/otspecial.h
(Generate patch)

Comparing ray/src/rt/otspecial.h (file contents):
Revision 2.3 by greg, Tue Feb 25 02:47:23 2003 UTC vs.
Revision 2.8 by greg, Tue Jan 9 05:01:15 2018 UTC

# Line 3 | Line 3
3   * Special type flags for objects used in rendering.
4   * Depends on definitions in otypes.h
5   */
6 + #ifndef _RAD_OTSPECIAL_H_
7 + #define _RAD_OTSPECIAL_H_
8 + #ifdef __cplusplus
9 + extern "C" {
10 + #endif
11  
12 < #include "copyright.h"
12 >                /* flag for nominally transparent materials */
13 > #define  T_TRANSP       T_SP1
14  
15 <                /* flag for materials to ignore during irradiance comp. */
16 < #define  T_IRR_IGN      T_SP1
15 >                /* flag for completely opaque materials */
16 > #define  T_OPAQUE       T_SP2
17  
18 < #define  irr_ignore(t)  (ofun[t].flags & T_IRR_IGN)
18 > #define  istransp(t)    (ofun[t].flags & T_TRANSP)
19 >
20 > #define  isopaque(t)    (ofun[t].flags & T_OPAQUE)
21 >
22 >                /* test if we have a BSDF proxy surface */
23 > #define isBSDFproxy(m)  ((m)->otype == MAT_BSDF && (m)->oargs.nsargs && \
24 >                                strcmp((m)->oargs.sarg[0], "0"))
25 >
26 > #ifdef __cplusplus
27 > }
28 > #endif
29 > #endif /* _RAD_OTSPECIAL_H_ */
30 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines