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

Comparing ray/src/rt/rtrace.c (file contents):
Revision 2.81 by greg, Thu Jul 4 01:25:07 2019 UTC vs.
Revision 2.84 by greg, Wed Aug 14 22:33:02 2019 UTC

# Line 267 | Line 267 | setoutput(                             /* set up output tables */
267                          break;
268                  case 'V':                               /* contribution */
269                          *table++ = oputV;
270                        castonly = 0;
270                          if (ambounce > 0 && (ambacc > FTINY || ambssamp > 0))
271                                  error(WARNING,
272                                          "-otV accuracy depends on -aa 0 -as 0");
# Line 664 | Line 663 | oputN(                         /* print unperturbed normal */
663          RAY  *r
664   )
665   {
666 <        if (r->rot < FHUGE)
667 <                (*putreal)(r->ron, 3);
668 <        else
666 >        if (r->rot < FHUGE) {
667 >                if (r->rflips & 1) {    /* undo any flippin' flips */
668 >                        FVECT   unrm;
669 >                        unrm[0] = -r->ron[0];
670 >                        unrm[1] = -r->ron[1];
671 >                        unrm[2] = -r->ron[2];
672 >                        (*putreal)(unrm, 3);
673 >                } else
674 >                        (*putreal)(r->ron, 3);
675 >        } else
676                  (*putreal)(vdummy, 3);
677   }
678  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines