|
|
The normal in the last texture of a layered texture does not apply globally to
the layered texture (which is what the docs seem to imply - 3.9.10.2). It is
applied according the transparency of the texture.
For an example, see my recent post in general. Oh, what the hell, here it is:
// ----------------------------------------
#declare TestTex =
texture{
pigment{rgb 0.5}
}
texture{
pigment{
marble scale 0.2
pigment_map{
[0 rgbf 1]
[1 rgbf <0.5,0.5,0.5,1>]
}
}
normal{granite 5 scale 0.1}
}
box{
0,1
translate -0.5
texture{TestTex}
}
I'm not sure if this is a bug in the docs, the prog. or my brain.
--
#macro A(V,B,C,R)#while(B-256)#if(V-128/B>=0)sphere{0,.5translate<C-4R-1,9>
pigment{rgb<1-C/8R/2C/8>}}#local V=V-128/B;#end#local B=B*2;#local C=C+1;#
end#end A(234,1,0,2)A(85,1,0,1)A(81,1,0,0)light_source{-5 1}//Tom Melly
Post a reply to this message
|
|