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

Comparing ray/src/util/genambpos.pl (file contents):
Revision 2.8 by greg, Thu May 15 17:30:53 2014 UTC vs.
Revision 2.11 by greg, Tue Feb 15 04:08:26 2022 UTC

# Line 4 | Line 4
4   # Visualize ambient positions and gradients
5   #
6   use strict;
7 + my $windoz = ($^O eq "MSWin32" or $^O eq "MSWin64");
8 + die "Not supported under Windows -- sorry!\n" if ( $windoz );
9   sub userror {
10          print STDERR "Usage: genambpos [-l lvl][-w minwt][-r rad][-s sf][-p][-d] scene.amb > ambloc.rad\n";
11          exit 1;
# Line 77 | Line 79 | void brightfunc pgpat
79   0
80   6 ${ px } ${ py } ${ pz } ${ pgx } ${ pgy } ${ pgz }
81  
82 + pgpat colorfunc pgpat
83 + 4 1 if(corralled,.1,1) if(corralled,.1,1) ambpos.cal
84 + 0
85 + 7 ${ px } ${ py } ${ pz } ${  ux  } ${  uy  } ${  uz  } ${   cflags    }
86 +
87   pgpat glow pgval
88   0
89   0
# Line 102 | Line 109 | void glow tipglow
109   0
110   4 ${2*agr} ${2*agg} ${2*agb} 0
111  
112 < tipglow sphere atip
112 > tipglow sphere atip${recno}
113   0
114   0
115   4 ${   cx1   } ${   cy1   } ${   cz1   } ${psiz/7}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines