|
![](/i/fill.gif) |
I've been using functions in POV-Ray for years now (successfully)--pigment
functions, functions for isosurfaces, etc. Yet I've never been able to make
sense of the examples given in the docs at 3.2.1.6.5 "Declaring User-Defined
Color Functions". It's not the set-up of the functions themselves that are
mysterious, but the examples of their use.
Here are the two code lines given there:
#declare Vec = foo(1,2,3)
and
#declare Val = foo(2,3,4).gray
What do the values (1,2,3) and (2,3,4) represent? There's no explanation given,
and I can't figure it out intuitively. (Is it simply a shorthand way of saying
(1*x,2*y,3*z)?) I've read and re-read the sections preceding this one, yet still
don't have a clue.
Post a reply to this message
|
![](/i/fill.gif) |