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.92 by greg, Thu Dec 5 19:23:43 2024 UTC vs.
Revision 2.93 by greg, Mon Dec 9 00:44:29 2024 UTC

# Line 220 | Line 220 | raytirrad(                     /* irradiance hack */
220   )
221   {
222          if (m->otype != MAT_CLIP && ismaterial(m->otype)) {
223 <                if (istransp(m->otype) || isBSDFproxy(m)) {
223 >                if (istransp(m) || isBSDFproxy(m)) {
224                          raytrans(r);
225                          return(1);
226                  }
# Line 550 | Line 550 | rayreject(             /* check if candidate hit is worse than cu
550                          return(1);      /* old has material, new does not */
551          } else if (mray == NULL) {
552                  return(0);              /* new has material, old does not */
553 <        } else if (istransp(mnew->otype)) {
554 <                if (!istransp(mray->otype))
553 >        } else if (istransp(mnew)) {
554 >                if (!istransp(mray))
555                          return(1);      /* new is transparent, old is not */
556 <        } else if (istransp(mray->otype)) {
556 >        } else if (istransp(mray)) {
557                  return(0);              /* old is transparent, new is not */
558          }
559          if (rod <= 0) {                 /* check which side we hit */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines