|
|
Jim Charter wrote:
e.g.
#macro T(P)
texture {
finish{ambient .5}
pigment { rgb P }
}
#end
#macro DefT()
texture {
finish{ambient .5}
pigment { rgb 1 }
}
#end
union {
difference {
union {
object{box {-1, 1 DefT()} T(x)}
object{box {<-2,-1,-1><-3, 1, 1> DefT() } T(x+y)}
object{box {<-3,-1,-1><-4, 1, 1> DefT() }}
}
object{box {0,<-5,2,2>}}
cutaway_textures
}
object{box {<-1,-1,-1><-2, 1, 1> DefT()}}
object{box {<-4,-1,-1><-5, 1, 1> DefT()} T(z)}
}
light_source {
0*x
color rgb <1,1,1>
translate <0.0, 2.0, 15.0>
}
camera {
location <3.0, 6.0, 15.0>
look_at <0.0, 0.0, 0.0>
right x*image_width/image_height
}
Post a reply to this message
|
|