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

Comparing ray/src/rt/raytrace.c (file contents):
Revision 2.71 by greg, Mon May 16 17:32:10 2016 UTC vs.
Revision 2.72 by greg, Tue Jan 9 05:01:15 2018 UTC

# Line 199 | Line 199 | raytrans(                      /* transmit ray as is */
199   }
200  
201  
202 /* Macro for test to see if BSDF material uses proxy */
203 #define isBSDFproxy(m)  ((m)->otype == MAT_BSDF && (m)->oargs.nsargs && \
204                                strcmp((m)->oargs.sarg[0], "0"))
205
206
202   int
203   rayshade(               /* shade ray r with material mod */
204          RAY  *r,
# Line 224 | Line 219 | rayshade(              /* shade ray r with material mod */
219                                          /* hack for irradiance calculation */
220                  if (do_irrad && !(r->crtype & ~(PRIMARY|TRANS)) &&
221                                  (ofun[m->otype].flags & (T_M|T_X)) &&
222 <                                m->otype != MAT_CLIP &&
223 <                                !isBSDFproxy(m)) {
229 <                        if (irr_ignore(m->otype)) {
222 >                                m->otype != MAT_CLIP) {
223 >                        if (istransp(m->otype) || isBSDFproxy(m)) {
224                                  raytrans(r);
225                                  return(1);
226                          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines