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

Comparing ray/src/common/bsdf_t.c (file contents):
Revision 3.33 by greg, Fri Mar 21 17:49:53 2014 UTC vs.
Revision 3.34 by greg, Sun Mar 23 19:24:11 2014 UTC

# Line 804 | Line 804 | SDsampTreCDist(FVECT ioVec, double randX, const SDCDst
804                                          /* emit from back? */
805          if ((cd->sidef == SD_BREFL) | (cd->sidef == SD_FXMIT))
806                  gpos[2] = -gpos[2];
807 <        if (cd->isodist) {              /* rotate isotropic result */
807 >        if (cd->isodist) {              /* rotate isotropic sample */
808                  rotangle = atan2(-ioVec[1],-ioVec[0]);
809 <                VCOPY(ioVec, gpos);
810 <                spinvector(ioVec, ioVec, zvec, rotangle);
809 >                spinvector(ioVec, gpos, zvec, rotangle);
810          } else
811                  VCOPY(ioVec, gpos);
812          return SDEnone;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines