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

Comparing ray/src/rt/rcontrib.c (file contents):
Revision 2.28 by greg, Wed Apr 27 21:11:32 2016 UTC vs.
Revision 2.30 by greg, Tue Apr 11 17:52:40 2017 UTC

# Line 41 | Line 41 | COLOR  salbedo = BLKCOLOR;             /* global scattering albedo
41   double  seccg = 0.;                     /* global scattering eccentricity */
42   double  ssampdist = 0.;                 /* scatter sampling distance */
43  
44 < double  specthresh = .15;               /* specular sampling threshold */
44 > double  specthresh = .02;               /* specular sampling threshold */
45   double  specjitter = 1.;                /* specular sampling jitter */
46  
47   int     backvis = 1;                    /* back face visibility */
# Line 135 | Line 135 | addmodifier(char *modn, char *outf, char *prms, char *
135          mp->modname = modn;             /* XXX assumes static string */
136          mp->params = prms;              /* XXX assumes static string */
137          mp->binv = ebinv;
138 +        mp->bin0 = 0;
139          mp->nbins = bincnt;
140          memset(mp->cbin, 0, sizeof(DCOLOR)*bincnt);
141 <                                        /* allocate output streams */
142 <        for (i = bincnt; i-- > 0; )
143 <                getostream(mp->outspec, mp->modname, i, 1);
141 >                                        /* figure out starting bin */
142 >        while (!getostream(mp->outspec, mp->modname, mp->bin0, 1))
143 >                mp->bin0++;
144 >                                        /* allocate other output streams */
145 >        for (i = 0; ++i < mp->nbins; )
146 >                getostream(mp->outspec, mp->modname, mp->bin0+i, 1);
147          lep->data = (char *)mp;
148          return(mp);
149   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines