|
![](/i/fill.gif) |
"avariant" <nomail@nomail> wrote in message
news:web.45f74903fde32694bb706900@news.povray.org...
>I know you can create a pigment user function that accepts x,y,z,u,v as the
> geometric and texture coordinates of the point being evaluated. My
> question is, are there constants that can be set to automatically accept
> the
> normal of the point being evaluated?
>
> I know that I could use the trace method to retrieve it, and if there is
> no
> other way, I'll do that, but it seems redundant. Likely, when evaluating
> the function, trace or some method like it, has been called prior and
> calling trace would just duplicate the effort and take longer.
>
>
>
If you just want a pigment based on the surface normal, have a look at the
'slope' pattern type. For something more complicated, you can look at
layering it perhaps.
-tgq
Post a reply to this message
|
![](/i/fill.gif) |