|
|
On Fri, 25 Jan 2008 11:30:10 +0100, "scott" <sco### [at] laptopcom> wrote:
>> Functionality that I think would be helpful is a method to overlay a
>> previously textured object with
>> a new texture. Perhaps this could be specified with an "overlay" keyword,
>> such as this:
>>
>> object {
>> o_PreviouslyTexturedObject
>> texture {
>> pigment { p_PartiallyClearPigment }
>> overlay
>> }
>> }
>
>Uh - you can already do this can't you? just take out the "overlay" keyword
>and it works!
>
With basic objects, yes, but not with complex objects.
Try this...
#declare p_PartiallyClearPigment =
pigment {
granite
color_map {
[0 rgbf 1]
[1 rgb <1,0,0>]
}
}
#declare o_PreviouslyTexturedObject =
union {
sphere {
x/2, 0.5
pigment { rgb <0,1,0> }
}
sphere {
-x/2, 0.5
pigment { rgb <0,0,1> }
}
}
object {
o_PreviouslyTexturedObject
texture {
pigment { p_PartiallyClearPigment }
//overlay
}
}
Post a reply to this message
|
|