Layered Textures
Strati di motivi parzialmente trasparenti
Possiamo sovrapporre sopra una testura di base una testura seconda
partialmente trasparente! La testura definita alla fine si vede alla superficie
e le altre testure si fanno vedere nei parti trasparenti del'ultima testura.
Esempio 1: "Layered Textures":
sphere{ <0,0,0>,1
scale <1.2,1,1>
translate<0,1.3,0>
texture{ Polished_Chrome
} // end of texture #1
texture{ Peel scale 0.5 translate<2,0,0>
normal { wrinkles 0.75 scale 0.1}
finish { diffuse 0.9 phong 0.3}
} // end of texture #2 obendrauf
} // end of sphere |
Esempio 2 "Layered Textures":
#declare Textur1 = //-------------------- texture 1
texture{
pigment{ ripples scale 0.5 turbulence 0.75
color_map { [0.0 color Green]
[0.4 color Yellow]
[0.4 color White]
[1.0 color YellowGreen]
} // end of color_map
} // end of pigment
normal { wrinkles 0.75 scale 0.1}
finish { diffuse 0.65
reflection 0.25 phong 1}
} //------------------------------ end of texture 1
#declare Textur2 = //-------------------- texture 2
texture{
pigment{ gradient<0,1,0> scale 0.5 turbulence 1.25
color_map { [0.0 color Clear]
[0.7 color Clear]
[0.7 color rgb<1,0.75,0> ]
[1.0 color Gray50 ]
} // end of color_map
} // end of pigment
normal { ripples 0.8 scale 0.02 turbulence 0.5 }
finish { diffuse 0.9 phong 1}
} //----------------------------- end of texture 2
//-------------------------------------------------
sphere{ <0,0,0>,1 scale <1.2,1,1>
texture{Textur1}
texture{Textur2}
translate<0,1,0>
} // end of sphere -------------------------- |
|