home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 8
/
CDASC08.ISO
/
NEWS
/
RADIANCE
/
SCN
/
SODA
/
COLORSTR.CAL
< prev
next >
Wrap
Text File
|
1993-10-07
|
316b
|
14 lines
{
colorstripe.cal - calculation for stripes of color.
A1, A2, A3 - stripe direction vector over width
A4, A5, A6 - first color
A7, A8, A9 - second color
}
stripe_red = if( stripe1, A4, A7 );
stripe_grn = if( stripe1, A5, A8 );
stripe_blu = if( stripe1, A6, A9 );
stripe1 = frac( A1*Px + A2*Py + A3*Pz ) - .5;