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

Comparing ray/src/cv/optics2rad.csh (file contents):
Revision 2.1 by greg, Fri May 19 03:50:13 2006 UTC vs.
Revision 2.2 by greg, Fri May 19 21:33:12 2006 UTC

# Line 33 | Line 33 | void BRTDfunc $(name)_back
33   '_EOF_'
34  
35   echo "# Output generated by $0 from $*"
36 + sed -e '/^[^#]/d' -e '/^$/d' $*
37  
38   cat > /tmp/out$$.fmt << '_EOF_'
39  
# Line 42 | Line 43 | void glass $(name)
43   3 ${Rtn} ${Gtn} ${Btn}
44   '_EOF_'
45  
46 < rcalc -e 'abs(x):if(x,x,-x);and(a,b):if(a,b,a);not(x):if(x,-1,1)' \
46 > rcalc -l -e 'abs(x):if(x,x,-x);and(a,b):if(a,b,a);not(x):if(x,-1,1)' \
47          -e 'lum(r,g,b):.265*r+.670*g+.065*b' \
48          -e 'trans=lum(Rtau,Gtau,Btau)' \
49          -e 'rfront=lum(fRrho,fGrho,fBrho);rback=lum(bRrho,bGrho,bBrho)' \
# Line 63 | Line 64 | void BRTDfunc $(name)
64          ${bRrho} ${bGrho} ${bBrho}
65   '_EOF_'
66  
67 < rcalc -e 'abs(x):if(x,x,-x);and(a,b):if(a,b,a);not(x):if(x,-1,1)' \
67 > rcalc -l -e 'abs(x):if(x,x,-x);and(a,b):if(a,b,a);not(x):if(x,-1,1)' \
68          -e 'lum(r,g,b):.265*r+.670*g+.065*b' \
69          -e 'trans=lum(Rtau,Gtau,Btau)' \
70          -e 'rfront=lum(fRrho,fGrho,fBrho);rback=lum(bRrho,bGrho,bBrho)' \
# Line 84 | Line 85 | void BRTDfunc $(name)
85          ${bRrho} ${bGrho} ${bBrho}
86   '_EOF_'
87  
88 < rcalc -e 'abs(x):if(x,x,-x);and(a,b):if(a,b,a);not(x):if(x,-1,1)' \
88 > rcalc -l -e 'abs(x):if(x,x,-x);and(a,b):if(a,b,a);not(x):if(x,-1,1)' \
89          -e 'lum(r,g,b):.265*r+.670*g+.065*b' \
90          -e 'trans=lum(Rtau,Gtau,Btau)' \
91          -e 'rfront=lum(fRrho,fGrho,fBrho);rback=lum(bRrho,bGrho,bBrho)' \

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines