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

Comparing ray/src/util/compamb.csh (file contents):
Revision 3.1 by gregl, Fri Jan 23 17:18:17 1998 UTC vs.
Revision 3.2 by gwlarson, Wed Jan 28 10:47:11 1998 UTC

# Line 33 | Line 33 | if ( $?doexpos ) then
33                  >> $argv[1]
34   endif
35   lookamb -h -d $tf.amb | rcalc -e '$1=$10;$2=$11;$3=$12' >> $tf.dat
36 < set lavg=`rcalc -e 'lum=.265*$1+.670*$2+.065*$3;cond=lum-1e-5' $tf.dat | total -m -p`
36 > set lavg=`rcalc -e '$1=lum;lum=.265*$1+.670*$2+.065*$3;cond=lum-1e-5' $tf.dat | total -m -p`
37   if ( $?docolor ) then
38          set cavg=(`total -m $tf.dat`)
39          set av=(`rcalc -n -e "r=$cavg[1];g=$cavg[2];b=$cavg[3];sf=$lavg/(.265*r+.670*g+.065*b)" -e '$1=sf*r;$2=sf*g;$3=sf*b'`)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines