|
![](/i/fill.gif) |
> Ambient seems to work the way I would expect it to when a colour is
> specified, so the following code shows up as mainly red, even though the
> pigment is more yellow.
>
> camera {location <0,0,-1> look_at 0}
> light_source { <-4,75 ,-10 >, rgb 1}
> sphere {<0,0,3>,1
> pigment {rgb <0.5,1,0>}
> finish {ambient <1,0,0> phong 0.5}
> }
Your example works for me to, but it seems to only work when the ambient and rgb
shares rgb values, that is the red component is more than zero for both. The
following for example doesn't work as expected.
camera {location <0,0,-1> look_at 0}
light_source { <-4,75 ,-10 >, rgb 1}
sphere
{
<0,0,3>,1
pigment {rgb <0.8, 0, 0>}
finish
{
ambient <0, 0, 1> phong 0.5
}
}
Post a reply to this message
|
![](/i/fill.gif) |