|
 |
> Are you sure? If I replace them with actual color vectors, I get the
> error message "Parse Error: Expected 'operand', color
> keyword 'rgb' found instead"!
Absolutely.
You are trying to shove a keyword and a vector into a scalar-only function that
gets parsed by the function VM.
> How can I use real colors instead?
Use a pigment_map. or a color_map.
In that case, you can even get rid of the select() statement.
The _maps do exactly that: they map the output values of your function to
colors, pigments, textures, normals, or materials.
color_map {
[ 0.0 rgb <0, 0, 0>]
[ 0.5 rgb <0, 0, 0>]
[ 0.5 rgb <1 ,1 ,1>]
[ 1.0 rgb <1 ,1 ,1>]
}
Double entries at 0.5 give a hard transition.
Now any value below 0.5 will be black, and any value above 0.5 will be white.
- BE
Post a reply to this message
|
 |