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

Comparing ray/src/rt/ashikhmin.c (file contents):
Revision 2.7 by greg, Wed Nov 15 18:02:52 2023 UTC vs.
Revision 2.9 by greg, Fri May 23 17:09:26 2025 UTC

# Line 217 | Line 217 | getacoords_as(         /* set up coordinate system */
217          if (normalize(np->v) == 0.0) {
218                  if (fabs(np->u_power - np->v_power) > 0.1)
219                          objerror(np->mp, WARNING, "bad orientation vector");
220 <                getperpendicular(np->u, np->pnorm, 1);  /* punting */
220 >                getperpendicular(np->u, np->pnorm, 0);  /* punting */
221                  fcross(np->v, np->pnorm, np->u);
222                  np->u_power = np->v_power =
223                          2./(1./(np->u_power+1e-5) + 1./(np->v_power+1e-5));
# Line 238 | Line 238 | ashiksamp(             /* sample anisotropic Ashikhmin-Shirley sp
238          int  maxiter, ntrials, nstarget, nstaken;
239          int  i;
240  
241 <        if (rayorigin(&sr, SPECULAR, np->rp, np->scolor) < 0)
241 >        if (rayorigin(&sr, RSPECULAR, np->rp, np->scolor) < 0)
242                  return;
243  
244          nstarget = 1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines