//-------------------------------------
#declare P_Map = // pigment map ------
pigment{
image_map{ jpeg "Acer01_diff.jpg"
interpolate 2 once
} //
} // -------------------------
#declare T_Map = // transparency map -
pigment{
image_map{ jpeg "Acer01_trans.jpg"
interpolate 2 once
} //
}// --------------------------
#declare N_Map = // normal or bump map
normal{
bump_map{ jpeg "Acer01_bump.jpg"
interpolate 2 bump_size 5 once
} //
} // --------------------------
#declare Leaf_Texture = //-----------
texture{ pigment{ P_Map }
normal { N_Map }
finish { phong 0.5 }
} // --------------------------
//------------------------------------
#declare Leaf_Material = //----------
material{
texture{
pigment_pattern{ T_Map }
texture_map{
[0.0 pigment{rgbf<1,1,1,1>}]
[0.7 Leaf_Texture ]
[1.0 Leaf_Texture ]
} // end texture_map
}// end texture
}// end material -------------------
// -----------------------------------
sphere{ <0,0,0>,0.65
scale<1,1,0.75>
translate<0.5,0.5,0.1>
clipped_by{
box{ <0,0,0>, <1,1,-1> }
} // clipped_by
material{ Leaf_Material }
rotate< 60,-90,0>
translate<0.63,-0.69,-0.46>
} // end of box ---------------------
//------------------------------------- |