|
|
"David Necas (Yeti)" wrote:
>
> Scattering media behaves quite strangely when you put
> a light_source directly into it.
fade_power 2 makes it behave less strange. Without it the source's
energy output increases with distance. There is still a notable
difference when the source is in/out of the media.
global_settings{assumed_gamma 1}
camera { location -30*z look_at 0 }
plane { y, -15 pigment { checker rgb<1,0,0> rgb<0,1,0> scale 10 } }
light_source{10.1*y 5
fade_power 2 fade_distance 1
media_attenuation on }
box {
<-10,-10,-10>, <10,10,10> hollow pigment { color rgbt<1,1,1,1> }
interior { media { scattering { 1, 0.2} } }
}
_____________
Kari Kivisalo
Post a reply to this message
|
|