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.91 by greg, Thu Nov 21 23:24:33 2024 UTC vs.
Revision 2.92 by greg, Thu Dec 5 19:23:43 2024 UTC

# Line 461 | Line 461 | raynormal(             /* compute perturbed normal for ray */
461                  return(r->rod);
462          }
463          newdot = -DOT(norm, r->rdir);
464 <        if ((newdot > 0.0) != (r->rod > 0.0)) {         /* fix orientation */
464 >        if ((newdot > 0.0) ^ (r->rod > 0.0)) {          /* fix orientation */
465                  for (i = 0; i < 3; i++)
466                          norm[i] += 2.0*newdot*r->rdir[i];
467                  newdot = -newdot;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines