// Sample scene. // 'povray bump_map.pov +w800 +h800 +p +mv3.8 +a0.0 +r4' global_settings { assumed_gamma 1.0 } background { rgb <0.02,0.02,0.02> } #declare Camera00 = camera { perspective location <3,3,-3.001>*0.9 sky y angle 35 right x*(image_width/image_height) look_at <0,0,0> } #declare Nrml00 = normal { bump_map { // <--- function 1200, 600 { // 1200, 600 //pattern { // crackle // ip_repeat <12,0,0> // scale <1/24,1/12,1/12> //} //pattern { // wrinkles // scale <1/(tau*8),1/(tau*4),1/(tau*4)> //} pattern { leopard scale <1/(tau*16),1/(tau*8),1/(tau*8)> } // x } interpolate 0 // 2 map_type 2 // 2 //once } //warp { repeat x } //warp { repeat y } //warp { repeat x flip x } //warp { repeat y flip y } } #declare White = srgb <1,1,1>; #declare Light00 = light_source { <50,150,-250>, White } //--- light_source { Light00 } sphere { 0, 1 // plane { -z, 0 pigment { rgb 1 } normal { Nrml00 bump_size +127 rotate +45*y} // -45 hide seam } camera { Camera00 } //sphere { <0,0,0>, 0.02 pigment {rgb <1,0,0> } } //sphere { <1,1,0>, 0.02 pigment {rgb <1,0,0> } }