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

Comparing ray/src/cv/mgf2rad.c (file contents):
Revision 2.30 by greg, Sat Jan 25 18:02:06 2014 UTC vs.
Revision 2.32 by greg, Thu Apr 15 23:51:04 2021 UTC

# Line 475 | Line 475 | do_tri(                /* put out smoothed triangle */
475                  bcoor[i][1] = n2[i];
476                  bcoor[i][2] = n3[i];
477          }
478 <        put_baryc(&bvecs, bcoor, 3);
478 >        fput_baryc(&bvecs, bcoor, 3, stdout);
479                                                  /* put out triangle */
480          printf("\nT-nor polygon %st%d\n", object(), ++ntris);
481          printf("0\n0\n9\n");
# Line 584 | Line 584 | material(void)                 /* get (and print) current material *
584                  return(mname);
585          }
586                                          /* check for plastic */
587 <        if (c_cmaterial->rs < .1) {
587 >        if (c_cmaterial->rs < .08 && (c_cmaterial->rs < .1*c_cmaterial->rd ||
588 >                                        c_isgrey(&c_cmaterial->rs_c))) {
589                  cvtcolor(radrgb, &c_cmaterial->rd_c,
590                                          c_cmaterial->rd/(1.-c_cmaterial->rs));
591                  fprintf(matfp, "\nvoid plastic %s\n0\n0\n", mname);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines