|
|
Not sure whether it has everything you wanted, but how about:
#macro Gradient2 (Vector)
#local FX=vnormalize(Vector).x;
#local FY=vnormalize(Vector).y;
#local FZ=vnormalize(Vector).z;
#local Len=vlength(Vector);
function {
min(1,max(0,(x*FX + y*FY + z*FZ)/Len))
}
#end
Christoph
--
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other
things on: http://www.schunter.etc.tu-bs.de/~chris/
Post a reply to this message
|
|