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

Comparing ray/src/cv/tmesh2rad.c (file contents):
Revision 2.8 by greg, Wed Jun 22 12:35:58 1994 UTC vs.
Revision 2.9 by greg, Wed Jul 24 13:07:44 1996 UTC

# Line 211 | Line 211 | register VERTEX        *v1, *v2, *v3;
211                  if (comp_baryc(&bvecs, v1->pos, v2->pos, v3->pos) < 0)
212                          return;
213                                          /* put out texture (if any) */
214 <        if (v1->flags & v2->flags & v3->flags & V_HASNORM) {
214 >        if (v1->flags & v2->flags & v3->flags & V_HASNORM &&
215 >                        !flat_tri(v1->pos, v2->pos, v3->pos,
216 >                                        v1->nor, v2->nor, v3->nor)) {
217                  printf("\n%s texfunc %s\n", mod, TEXNAME);
218                  mod = TEXNAME;
219                  printf("4 dx dy dz %s\n", TCALNAME);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines