POV-Ray : Newsgroups : povray.advanced-users : pigment from array : Re: pigment from array Server Time
3 Jul 2024 04:53:16 EDT (-0400)
  Re: pigment from array  
From: Christian Froeschlin
Date: 10 Mar 2009 18:06:45
Message: <49b6e475@news.povray.org>
clipka wrote:

> Now I want to add some "ground fog"-like effect that follows the contours of
> this height field.

You could use multiple copies of your mesh (or a thin slice thereof),
each filled with constant fog but with lower constant density for those
copies which are located higher. How many copies you need depends on
the desired quality.

You could also try to use a second tracing macro to explicitely
build a function out of terribly nested "select"s without needing
array accesses but I suppose that is highly impractical ;)


Post a reply to this message

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