Ummm.... may I suggest media?
Yes, media is slower. That's because it can handle stuff like this. Fog
can work because it is uniform throughout so it only takes one calculation.
Making it non-uniform means you have to use 'ray-marching' where you sample
it at mutliple places along the way, which of course slows things down
tremendously. (Ground fog is a bit more complicated than constant fog, but
not much more... still only one calculation per ray - no ray marching.)
-Nathan
Ken wrote:
>
> Since we are on the subject would it be possible to add color mapping
> to the fog operation. I have on more than one occassion wished I could
> add a gradient color map to a ground fog as opposed to having to use
> several layers of fog to achieve the same effect. Extending that to
> include image mapping onto fog would be definite bonus.
>
> --
> Ken Tyler
>
> mailto://tylereng@pacbell.net
Post a reply to this message
|