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

Comparing ray/src/rt/virtuals.c (file contents):
Revision 2.25 by greg, Fri Feb 12 00:41:19 2021 UTC vs.
Revision 2.26 by greg, Wed Nov 15 18:02:53 2023 UTC

# Line 387 | Line 387 | vstestvis(             /* pretest source visibility */
387                  }
388                  sr.revf = srcvalue;
389                  rayvalue(&sr);                  /* check sample validity */
390 <                if ((d = bright(sr.rcol)) <= FTINY)
390 >                if ((d = scolor_mean(sr.rcol)) <= FTINY)
391                          continue;
392                  nok++;                  /* got sample; check obstructions */
393                  rayclear(&sr);
394                  sr.revf = raytrace;
395                  rayvalue(&sr);
396 <                if ((d1 = bright(sr.rcol)) > FTINY) {
396 >                if ((d1 = scolor_mean(sr.rcol)) > FTINY) {
397                          if (d - d1 > FTINY) {
398   #ifdef DEBUG
399                                  fprintf(stderr, "\tpartially shadowed\n");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines