|
![](/i/fill.gif) |
global_settings {
assumed_gamma 1
radiosity { }
}
camera{
location <5, 9, 11>
up <0, 1, 0>
right <1, 0, 0>
look_at <0, 0, 0>
}
plane{
-y, -20
pigment { rgb 1 }
finish { ambient 1 diffuse 0 }
}
#local f = function(a, b) { min(1, (a*a + b*b) / 100) }
plane{
y, 0
pigment{
function { f(x, z) }
pigment_map{
[0 rgb 0]
[1 rgb 1]
}
}
finish { ambient 0 diffuse 1 }
}
then the pigment is continuous:
texture{
function { f(x, z) }
texture_map{
[0 pigment {rgb 0} finish { ambient 0 diffuse 1 }]
[1 pigment {rgb 1} finish { ambient 0 diffuse 1 }]
}
}
William
Post a reply to this message
|
![](/i/fill.gif) |