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 1.11 by greg, Thu Jun 13 13:58:18 1991 UTC vs.
Revision 1.12 by greg, Mon Aug 12 08:20:55 1991 UTC

# Line 196 | Line 196 | register RAY  *r;
196          if (nd.tspec > FTINY && nd.alpha2 <= FTINY) {
197                  RAY  lr;
198                  if (rayorigin(&lr, r, TRANS, nd.tspec) == 0) {
199 <                        if (DOT(r->pert,r->pert) > FTINY*FTINY) {
199 >                        if (!(r->crtype & SHADOW) &&
200 >                                        DOT(r->pert,r->pert) > FTINY*FTINY) {
201                                  for (i = 0; i < 3; i++) /* perturb direction */
202                                          lr.rdir[i] = r->rdir[i] -
203                                                          .75*r->pert[i];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines