|
|
OK. Did some experimenting with layered textures. This does not work. A
pity, as I find it more *elegant* :
//------------------------------------
#declare Group =
union {
box {
<-1, -1, -1>, <1, 1, 1>
translate <-0.3, 0.0, -0.5>
texture {Layer1 scale 0.1}
}
sphere {
<0,0,0>,1
translate <0.8, -0.6, 0.3>
texture {Layer2 scale 0.1}
}
texture {YellowTransparantColor}
}
object {Group}
//------------------------------------
But this does what I want (see the image):
//------------------------------------
#declare Group =
union {
box {
<-1, -1, -1>, <1, 1, 1>
translate <-0.3, 0.0, -0.5>
texture {Layer1 scale 0.1}
texture {YellowTransparantColor}
}
sphere {
<0,0,0>,1
translate <0.8, -0.6, 0.3>
texture {Layer2 scale 0.1}
texture {YellowTransparantColor}
}
}
object {Group}
//------------------------------------
Thomas
Post a reply to this message
Attachments:
Download 'layeredTexture_test.png' (103 KB)
Preview of image 'layeredTexture_test.png'
|
|