ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/genBSDF.pl
(Generate patch)

Comparing ray/src/util/genBSDF.pl (file contents):
Revision 2.30 by greg, Mon Feb 20 02:56:19 2012 UTC vs.
Revision 2.31 by greg, Mon Feb 20 04:54:49 2012 UTC

# Line 584 | Line 584 | print
584                          <ScatteringDataType>BRDF</ScatteringDataType>
585                          <ScatteringData>
586   ';
587 < # Output front reflection (reciprocity averaging)
587 > # Output front reflection (transposed order)
588   for (my $od = 0; $od < $ndiv; $od++) {
589          for (my $id = 0; $id < $ndiv; $id++) {
590 <                print .5*($rfarr[$ndiv*$id + $od] + $rfarr[$ndiv*$od + $id]), ",\n";
590 >                print $rfarr[$ndiv*$id + $od], ",\n";
591          }
592          print "\n";
593   }
# Line 637 | Line 637 | print
637   # Output back reflection (reciprocity averaging)
638   for (my $od = 0; $od < $ndiv; $od++) {
639          for (my $id = 0; $id < $ndiv; $id++) {
640 <                print .5*($rbarr[$ndiv*$id + $od] + $rbarr[$ndiv*$od + $id]), ",\n";
640 >                print $rbarr[$ndiv*$id + $od], ",\n";
641          }
642          print "\n";
643   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines