» texture_map « -
La projection de motifs de textures.
Exemple 1 pour » texture_map{...} « :
#declare Texture_W =
texture{ pigment{ color White*0.9}
normal { bumps 1 scale 0.025}
finish { diffuse 0.9 specular 1}
} // end of texture
#declare Texture_S =
texture{ T_Stone10 scale 1
normal { agate 0.5 scale 0.25}
finish { diffuse 0.9 phong 1 }
} // end of texture
//------------------------------------------------------
sphere { <0,0,0>, 1
texture{ crackle scale 1.5 turbulence 0.1
texture_map {[0.00 Texture_W]
[0.05 Texture_W]
[0.05 Texture_S]
[1.00 Texture_S]
}// end of texture_map
scale 0.2
} // end of texture ---------------------------
scale<1,1,1> rotate<0,0,0> translate<0.40,1,0>
} // end of sphere ------------------------------------ |
Exemple 2 pour » texture_map{...} « :
texture{ gradient<0,1,0> scale 0.25 turbulence 0.75
texture_map{[0.00 pigment{color Red}
finish { diffuse 0.9 phong 1}]
[0.75 pigment{color Yellow}]
[0.75 Polished_Chrome
normal{ ripples 0.5 scale 0.01} ]
[1.00 Polished_Brass ] } // end of texture_map
}// end of texture ------------------------------------------
|
Un autr' exemple pour » texture_map{...} « :
sphere{<0,0,0>,1 scale <1.2,1,1> translate<0,1.3,0>
texture{gradient<1,1,0> turbulence 0.4
texture_map{
[0.00 Polished_Chrome]
[0.40 Polished_Chrome
normal { bumps 0.75 scale 0.1}]
[0.60 Polished_Chrome
pigment{color rgb<1,0.8,0>}
normal {ripples 0.75 turbulence 0.25}
finish {diffuse 0.9 phong 0.3}]
[1.00 Polished_Chrome pigment{ color rgb<1,0.8,0>}
finish {diffuse 0.9 phong 0.3}]
} // end of texture_map
} // end of texture
}// end of sphere |
|