|
![](/i/fill.gif) |
> > I believe you should be able to do this by defining a function to use as a
> > pigment (though I've not tried it and don't know the maths you'd need).
> > ... snip ...
>
> Here's what I arrived at through messing about for a couple of minutes with
> that trying to get a perspective-like pattern:
>
> camera {location <0, 0,-20> look_at 0}
> light_source { <-20, 20, -20> color rgb <1,1,1>}
>
> #include "functions.inc"
> #declare FOO = function {pigment { checker scale 10} }
>
> plane {-z,0
> pigment {
> function { FOO(x/y*20,sqrt(y)*100,z).green}
> }
> }
>
> Regards,
> Chris B.
Thanks to all, it's just what I need to know.
mimmo
Post a reply to this message
|
![](/i/fill.gif) |