POV-Ray : Newsgroups : povray.general : merged (or nested) gradients : Re: merged (or nested) gradients Server Time
1 Aug 2024 18:28:47 EDT (-0400)
  Re: merged (or nested) gradients  
From: Alain
Date: 8 Jun 2005 17:43:47
Message: <42a76693$1@news.povray.org>
Steely nous apporta ses lumieres en ce 2005-06-08 13:21:
> "Mike Andrews" <nomail@nomail> wrote:
> 
>>Well, the way I'd do it is:-
>>
>>// -- begin code --
>>    pigment_map {
> 
>       ^^^^^^^^^^^^^^
> 


> 
> Any other ideas?
> 
> TIA
> 
> S.
> 
> 
> 
Been in a media, the solution is simple: use 2 densitys in the same media. The
densitys will 
multiplied together. If one density return zero, it will cancel the other.
Read 3.6.2.3.4  Multiple Density vs. Multiple Media in the documentation.

So,
       media {
         density { gradient y }
         density { your horizontal density_map }
       }
Hope this will help you

Alain


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.