|
|
In article <web.3f82ae85bc09b08e10dd5cfd0@news.povray.org>,
"Dave Matthews" <dma### [at] wrmnwestmnscuedu> wrote:
> >Would it be possible to change the color based on the gradient of the
> >>function?
>
> Probably, but I usually have to wait for someone like Mike Williams or
> "Sputnik" to come along and show me how ;-)
Well, it would be simple enough, just use the fn_Gradient() macro in
math.inc. It will be quite a bit slower to evaluate, though. Something
more interesting would be to use gradient in each axis for the
respective color component: x gradient for red, y gradient for green,
and z gradient for blue. This should actually be a bit faster...not to
mention more colorful.
--
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/
Post a reply to this message
|
|