|
![](/i/fill.gif) |
In one scene I'm working on, I need to sample data from discrete points using
trace(). From this, I'm currently generating a heightfield-like mesh.
Now I want to add some "ground fog"-like effect that follows the contours of
this height field.
I tried with a pigment based on a function that takes the values from an array,
but it seems that accessing an array from within functions is not possible (or
I'm doing something wrong).
Another idea would be to do an orthographic shot of the heightfield mesh with a
gradient pattern to convert it into a heightfield image; however, I would
prefer to avoid the additional rendering step.
Any smart idea how to accomplish this?
Post a reply to this message
|
![](/i/fill.gif) |