# | 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"); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |