#declare Roof_Texture = // -------
// layered textures !!! - überlagerte Texturen
texture{ pigment{color rgb<0.55,0.09,0.09>*1.3}
normal {gradient z scallop_wave
scale<1,1,0.15>}
finish {ambient 0.15 diffuse 0.85}
} // end of texture
texture{ pigment{ gradient x
color_map{
[0.00 color rgbt<1,1,1,1>]
[0.90 color rgbt<1,1,1,1>]
[0.95 color rgb<1,1,1>*0.1]
[1.00 color rgb<1,1,1>*0.1]}
scale 0.25}
finish {ambient 0.15 diffuse 0.85}
} // end of texture
//---------------------------- end of roof texture
#declare Roof_D = 0.10; // thickness of the roof
#declare Roof_O = 0.20; // overhang
#declare Roof_L = Hx+0.80;// try it!
//-------- parts of the roof: first horizontal,
// then sloped and translated upways
box{ // left part of the roof
<-Roof_L,0,-Roof_O>,<Roof_D/2,Roof_D,Hz+Roof_O>
texture {Roof_Texture translate<-0.05,0,0>}
rotate<0,0, Roof_Angle>
translate<0,Hy,0>
}
box{ // right part of the roof
<-Roof_L,0,-Roof_O>,<Roof_D/2,Roof_D,Hz+Roof_O>
texture {Roof_Texture translate<-0.05,0,0>}
rotate<0,0, Roof_Angle>
translate<0,Hy,0>
scale<-1,1,1> // mirrowed in x direction!!!
}
//--------------------------------------- end of the roof |