|
|
"Thomas Fester" <tfe### [at] scivitde> wrote:
> Can you define gradients for media? So far I only know how to do uniform
> material.
Yes. Media is controlled by any pattern or function just like pigments,
normals, etc.
https://www.f-lohmueller.de/pov_tut/interior/interior_000e.htm
#version 3.8;
#include "colors.inc"
#include "shapes.inc"
global_settings {
assumed_gamma 0.4
}
sky_sphere {pigment {rgb 1}}
camera {
location <0, 0, -35>
look_at <0, -1, 0>
}
box {
<-20, -5, -5>, <20, 5, 5>
pigment {rgbt 1}
hollow
interior {
media {
emission <1, 0.2, -0.6> * 0.9
scattering {1, <1, 1, 1> extinction 2.0}
density {gradient x
color_map {
[0.0 rgb 0.0]
[0.5 rgb 0.1]
[1.0 rgb 1.0]
} // end color_map
} // end of density
} // end of media ----
} // end of interior
}
Then you can just use spherical harmonics functions to simulate the orbital
shapes, like I mentioned in an earlier post.
- BW
Post a reply to this message
|
|