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

Comparing ray/src/rt/t_func.c (file contents):
Revision 2.8 by greg, Mon Oct 25 22:57:45 2010 UTC vs.
Revision 2.9 by greg, Sat Jun 9 07:16:47 2012 UTC

# Line 51 | Line 51 | t_func(                        /* compute texture for ray */
51                          return(0);
52                  }
53          }
54 <        if (mf->f != &unitxf)
55 <                multv3(disp, disp, mf->f->xfm);
54 >        if (mf->fxp != &unitxf)
55 >                multv3(disp, disp, mf->fxp->xfm);
56          if (r->rox != NULL) {
57                  multv3(disp, disp, r->rox->f.xfm);
58 <                d = 1.0 / (mf->f->sca * r->rox->f.sca);
58 >                d = 1.0 / (mf->fxp->sca * r->rox->f.sca);
59          } else
60 <                d = 1.0 / mf->f->sca;
60 >                d = 1.0 / mf->fxp->sca;
61          VSUM(r->pert, r->pert, disp, d);
62          return(0);
63   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines