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

Comparing ray/src/rt/m_brdf.c (file contents):
Revision 2.28 by greg, Sun Jul 29 21:56:16 2012 UTC vs.
Revision 2.31 by greg, Sat Jan 25 18:27:39 2014 UTC

# Line 38 | Line 38 | static const char      RCSid[] = "$Id$";
38   *  Arguments for MAT_TFUNC are:
39   *      2+      func    funcfile        transform
40   *      0
41 < *      4+      red     grn     blu     rspec   trans   tspec   A7 ..
41 > *      6+      red     grn     blu     rspec   trans   tspec   A7 ..
42   *
43   *  Arguments for MAT_TDATA are:
44   *      4+      func    datafile        funcfile        v0 ..   transform
45   *      0
46 < *      4+      red     grn     blu     rspec   trans   tspec   A7 ..
46 > *      6+      red     grn     blu     rspec   trans   tspec   A7 ..
47   *
48   *  Arguments for the more general MAT_BRTDF are:
49   *      10+     rrefl   grefl   brefl
# Line 206 | Line 206 | m_brdf(                        /* color a ray that hit a BRDTfunc material
206          BRDFDAT  nd;
207          RAY  sr;
208          double  mirtest=0, mirdist=0;
209 <        double  transtest, transdist;
209 >        double  transtest=0, transdist=0;
210          int  hasrefl, hastrans;
211          int  hastexture;
212          COLOR  ctmp;
# Line 363 | Line 363 | m_brdf2(                       /* color a ray that hit a BRDF material */
363                  objerror(m, USER, "bad # arguments");
364                                                  /* check for back side */
365          if (r->rod < 0.0) {
366 <                if (!backvis && m->otype != MAT_TFUNC
367 <                                && m->otype != MAT_TDATA) {
366 >                if (!backvis) {
367                          raytrans(r);
368                          return(1);
369                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines