web.44c59203d1424b84a6ac26a70@news.povray.org...
> Hi, here is what I want to do: I have a cube (it could be a rectangle
later
> on) and I have made it hollow and filled it with absorbing media and made
> the cube clear. the light source is above it. I want to progressively
> change the amount I am absorbing as I go away from the light. I want to
> absorb more light the further away I get from the light source. I figure I
> have to use a density_map but I'm not sure how to that for a cube (or
> similar) shape. I have done a density_map for a sphere with emitting media
> before. Thanks for any help. :)
>
>
>
This could work
#declare Material1 =
material
{
texture
{
pigment
{
color rgbt 1
}
}
interior
{
media
{
absorption rgb <1.0, 1.0, 1.0>
density
{
boxed
color_map
{
[ 0.0 rgb 0 ]
[ 1.0 rgb 1 ]
}
}
}
}
}
Post a reply to this message
|