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.17 by greg, Wed Jun 1 00:29:40 2011 UTC vs.
Revision 2.18 by greg, Wed Jun 1 22:50:24 2011 UTC

# Line 248 | Line 248 | sub bg_tree_rtcontrib {
248                          "| rcalc -e 'r1=rand(($pn+.8681)*recno-.673892)' " .
249                          "-e 'r2=rand(($pn-5.37138)*recno+67.1737811)' " .
250                          "-e 'r3=rand(($pn+3.17603772)*recno+83.766771)' " .
251 <                        "-e 'Dx=1-($pbeg+\$1+r1)/$ns;Dy:0;Dz=sqrt(1-Dx*Dx)' " .
251 >                        "-e 'Dx=1-2*($pbeg+\$1+r1)/$ns;Dy:0;Dz=sqrt(1-Dx*Dx)' " .
252                          "-e 'xp=(\$3+r2)*(($dim[1]-$dim[0])/$nx)+$dim[0]' " .
253                          "-e 'yp=(\$2+r3)*(($dim[3]-$dim[2])/$ny)+$dim[2]' " .
254                          "-e 'zp=$dim[5-$forw]' -e 'myDz=Dz*($forw*2-1)' " .

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines