--- ray/src/rt/otspecial.h 2004/06/22 13:40:54 2.7 +++ ray/src/rt/otspecial.h 2018/01/09 05:01:15 2.8 @@ -1,4 +1,4 @@ -/* RCSid $Id: otspecial.h,v 2.7 2004/06/22 13:40:54 greg Exp $ */ +/* RCSid $Id: otspecial.h,v 2.8 2018/01/09 05:01:15 greg Exp $ */ /* * Special type flags for objects used in rendering. * Depends on definitions in otypes.h @@ -9,16 +9,19 @@ extern "C" { #endif - /* flag for materials to ignore during irradiance comp. */ -#define T_IRR_IGN T_SP1 + /* flag for nominally transparent materials */ +#define T_TRANSP T_SP1 /* flag for completely opaque materials */ #define T_OPAQUE T_SP2 -#define irr_ignore(t) (ofun[t].flags & T_IRR_IGN) +#define istransp(t) (ofun[t].flags & T_TRANSP) #define isopaque(t) (ofun[t].flags & T_OPAQUE) + /* test if we have a BSDF proxy surface */ +#define isBSDFproxy(m) ((m)->otype == MAT_BSDF && (m)->oargs.nsargs && \ + strcmp((m)->oargs.sarg[0], "0")) #ifdef __cplusplus }