Nieminen Juha wrote:
>
> After _LOTS_ of thinking I got a really short answer:
>
> Given an aperture angle 'Angle' for the cone and a point 'p' in space,
> the color for that point is:
>
> -sin(Angle)*abs(p.x)+cos(Angle)*sqrt(p.y*p.y+p.z*p.z)
>
Thank you. It works well, with just one problem: the pattern is mirrored along
the XY plane. I'll try to use my own brains to fix this :)
Margus
Post a reply to this message
|