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

Comparing ray/src/rt/source.c (file contents):
Revision 2.7 by greg, Thu Oct 22 09:55:16 1992 UTC vs.
Revision 2.8 by greg, Sat Nov 14 13:58:23 1992 UTC

# Line 81 | Line 81 | marksources()                  /* find and mark source objects */
81                  if (m->otype == MAT_GLOW) {
82                          source[ns].sflags |= SPROX;
83                          source[ns].sl.prox = m->oargs.farg[3];
84 <                        if (o->otype == OBJ_SOURCE)
84 >                        if (source[ns].sflags & SDISTANT)
85                                  source[ns].sflags |= SSKIP;
86                  } else if (m->otype == MAT_SPOT) {
87                          source[ns].sflags |= SSPOT;
# Line 448 | Line 448 | register RAY  *r;
448          if (srcignore(m, r))
449                  return;
450                                                  /* check for outside spot */
451 <        if (m->otype==MAT_SPOT && spotout(r, (SPOT *)m->os, r->rot>=FHUGE))
451 >        if (m->otype==MAT_SPOT && spotout(r, makespot(m), r->rot>=FHUGE))
452                  return;
453                                                  /* get distribution pattern */
454          raytexture(r, m->omod);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines