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

Comparing ray/src/rt/normal.c (file contents):
Revision 2.79 by greg, Wed Feb 13 02:38:26 2019 UTC vs.
Revision 2.82 by greg, Tue Mar 7 02:24:44 2023 UTC

# Line 25 | Line 25 | static const char RCSid[] = "$Id$";
25   #define  MAXITER        10              /* maximum # specular ray attempts */
26   #endif
27                                          /* estimate of Fresnel function */
28 < #define  FRESNE(ci)     (exp(-5.85*(ci)) - 0.00287989916)
28 > #define  FRESNE(ci)     (exp(-5.85*(ci)) - 0.00202943064)
29   #define  FRESTHRESH     0.017999        /* minimum specularity for approx. */
30  
31  
# Line 321 | Line 321 | m_normal(                      /* color a ray that hit something normal *
321                          multcolor(lr.rcol, lr.rcoef);
322                          copycolor(r->mcol, lr.rcol);
323                          addcolor(r->rcol, lr.rcol);
324 +                        r->rmt = r->rot;
325                          if (nd.specfl & SP_FLAT &&
326                                          !hastexture | (r->crtype & AMBIENT))
327 <                                r->rmt = r->rot + raydistance(&lr);
327 >                                r->rmt += raydistance(&lr);
328                  }
329          }
330  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines