From: Corey Woodworth
Subject: What am I doing wrong?
Date: 8 Apr 2002 02:13:26
Message: <3cb13506@news.povray.org>
Why doesn't this code work?
#declare fun = function { pigment {
image_map {
tga "face.tga"
map_type 0
interpolate 2
}
}
}
and then this in some object:
texture {
pigment {
fun
color_map {
[0 color White]
[1 color Black]
}
}
it keeps stopping between fun and color_map saying no matching } in pigment
vector function identifier found instad.
HELP!
Corey
In article <3cb13506@news.povray.org>,
"Corey Woodworth" <cdw### [at] mpinetnet> wrote:
> and then this in some object:> > texture {> pigment {> fun> color_map {> [0 color White]> [1 color Black]> }> }> > it keeps stopping between fun and color_map saying no matching } in pigment> vector function identifier found instad.
You want "pigment {function {fun(x, y, z)} ...}"...function names were
never useable directly as pattern identifiers, though that would be a
nice shortcut sometimes...
--
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/