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

Comparing ray/src/rt/m_brdf.c (file contents):
Revision 2.41 by greg, Fri Apr 5 01:10:26 2024 UTC vs.
Revision 2.42 by greg, Thu Dec 5 19:23:43 2024 UTC

# Line 208 | Line 208 | m_brdf(                        /* color a ray that hit a BRDTfunc material
208          RAY  *r
209   )
210   {
211        int  hitfront = 1;
211          BRDFDAT  nd;
212          RAY  sr;
213          int  hasrefl, hastrans;
# Line 254 | Line 253 | m_brdf(                        /* color a ray that hit a BRDTfunc material
253                          nd.pnorm[i] = -nd.pnorm[i];
254                          r->pert[i] = -r->pert[i];
255                  }
257                hitfront = 0;
256          }
257          copyscolor(nd.mcolor, r->pcol);         /* get pattern color */
258          smultscolor(nd.rdiff, nd.mcolor);       /* modify diffuse values */
# Line 263 | Line 261 | m_brdf(                        /* color a ray that hit a BRDTfunc material
261          hastrans = (sintens(nd.tdiff) > FTINY);
262                                                  /* load cal file */
263          nd.dp = NULL;
264 <        mf = getfunc(m, 9, 0x3f, 0);
264 >        mf = getfunc(m, 9, 0x3F, 0);
265                                                  /* compute transmitted ray */
266          setbrdfunc(&nd);
267          errno = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines