|
![](/i/fill.gif) |
Kyle nous apporta ses lumieres en ce 19-04-2007 22:08:
> On Wed, 18 Apr 2007 14:13:16 -0700, William Tracy <wtr### [at] calpoly edu> wrote:
>>> Your rocks look like pillow lava, though, is it a granite pattern? Why not
>>> wrinkles?
>> Yeah, the rock looks funky... but I really like that water! :-)
> Thanks!
> Here's the code for the island and the water. The island could use some work.
Maybe I'll work on
> it for my next "final" version.
>>>> snip >>>
> #declare f_LighthouseIsland =
> function {
> f_sphere(x/2.5, select(y-1/4, y, (y-1/8)*2), z/2.5, 1/4)
> - f_p_LighthouseIsland(x,y,z).gray/10
> }
>>>> snip >>>
You can gain some speed with this version:
f_p_LighthouseIsland(x,y,z).x/10
This works because your pigment is already in shades of gray and all 3
components are equal. Now, you don't have to evaluate all 3 and average them.
This don't work if you use a pigment with a built in color_map like boxo, agate
or wood.
--
Alain
-------------------------------------------------
Commercialism: Let's package this shit.
Post a reply to this message
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
On Fri, 20 Apr 2007 08:44:21 -0400, Alain <ele### [at] netscape net> wrote:
>You can gain some speed with this version:
>f_p_LighthouseIsland(x,y,z).x/10
Ahh, hadn't caught that. Thanks for the tip!
Post a reply to this message
|
![](/i/fill.gif) |