|
![](/i/fill.gif) |
Zeger Knaepen wrote:
> "Dave VanHorn" <mic### [at] gmail com> wrote in message
>
>>I looked through the docs on normal, but didn't see any way to apply the
>>pigment or texture as a normal.
>
> that's because there isn't.
well, as you mentioned yourself, you can use pigment_pattern
to treat the average gray value of the pigment as normal:
texture
{
pigment {P}
normal {pigment_pattern {P}}
}
Or, to use a different channel:
texture
{
#local f_P = function { pigment {P} };
pigment {P}
normal {function{ f_P(x,y,z).red } }
}
Whether that makes sense probably depends on the pigment ;)
Post a reply to this message
|
![](/i/fill.gif) |