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

Comparing ray/src/common/testBSDF.c (file contents):
Revision 1.15 by greg, Sat Dec 28 18:05:14 2019 UTC vs.
Revision 1.17 by greg, Tue Dec 7 23:49:50 2021 UTC

# Line 126 | Line 126 | main(int argc, char *argv[])
126                                                  bsdf->rb->maxHemi);
127                          if (bsdf->tf)
128                                  printf("Peak front hemispherical transmittance: %.3e\n",
129 <                                                bsdf->tLamb.cieY + bsdf->tf->maxHemi);
129 >                                                bsdf->tLambFront.cieY + bsdf->tf->maxHemi);
130                          if (bsdf->tb)
131                                  printf("Peak back hemispherical transmittance: %.3e\n",
132 <                                                bsdf->tLamb.cieY + bsdf->tb->maxHemi);
132 >                                                bsdf->tLambBack.cieY + bsdf->tb->maxHemi);
133                          printXYZ("Diffuse Front Reflectance: ", &bsdf->rLambFront);
134                          printXYZ("Diffuse Back Reflectance: ", &bsdf->rLambBack);
135 <                        printXYZ("Diffuse Transmittance: ", &bsdf->tLamb);
135 >                        printXYZ("Diffuse Front Transmittance: ", &bsdf->tLambFront);
136 >                        printXYZ("Diffuse Back Transmittance: ", &bsdf->tLambBack);
137                          break;
138                  case 'Q':                       /* query BSDF value */
139                          if (!bsdf)
# Line 141 | Line 142 | main(int argc, char *argv[])
142                                  break;
143                          vec_from_deg(vin, atof(sskip2(cp,1)), atof(sskip2(cp,2)));
144                          vec_from_deg(vout, atof(sskip2(cp,3)), atof(sskip2(cp,4)));
145 <                        if (!SDreportError(SDevalBSDF(&val, vout, vin, bsdf), stderr))
145 >                        if (!SDreportError(SDevalBSDF(&val, vin, vout, bsdf), stderr))
146                                  printXYZ("", &val);
147                          break;
148                  case 'S':                       /* sample BSDF */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines