// ClothRay example: nappe.pov // Christophe Bouffartigue (tofbouf@free.fr) #version unofficial MegaPov 0.7; #macro WriteClothFile(nomfile, n1, n2, nlng, ks, ht) #debug "\nWriting new .cth file\n" #fopen file nomfile write #write(file, n1, ",", n2, ",", nlng, ",", ks, ",\n") #local l1 = nlng*(n1-1); #local l2 = nlng*(n2-1); #local st = seed(1234); #local i=0; #while (i color rgb<1, .8 ,.4> scale <1/10, 1/10, 1/10>} } } camera {location -2*z+1.2*y+.2*x look_at .5*y } light_source { -2*z+0.5*y-.2*x, color rgb .5 shadowless } light_source { <1,2,-1>*3, color rgb 1.2 spotlight radius 20 falloff 30 tightness 2 point_at 0 } object { Nappe translate .001*y } object { Table scale <.98, 1, .98> pigment { rgb <.8, .5, .1> } } // floor plane { y, 0 pigment { color rgb .8 } finish { ambient .3 diffuse .7 } } // walls plane { x, -3 pigment { color rgb .8 } finish { ambient .3 diffuse .7 } } plane { -z, -3 pigment { color rgb .8 } finish { ambient .3 diffuse .7 } }