1 // pass in a random seed (integer) to this file with +K
5 #declare RS = seed(clock);
7 #macro rnd() (rand(RS)) #end
9 // rock size. The larger this number, the closer the camera, and the smaller the bumps.
10 #declare rsize = 1 + rnd();
16 location <0, 0, -4 / rsize>
23 // same light sorce as ship.pov
24 light_source { <-500, 500, -700> White }
28 sphere { <0.5 - rnd(), 0.5 - rnd(), 0.5 - rnd()>, .1 + rnd(), 1 }
29 sphere { <0.5 - rnd(), 0.5 - rnd(), 0.5 - rnd()>, .1 + rnd(), 1 }
30 sphere { <0.5 - rnd(), 0.5 - rnd(), 0.5 - rnd()>, .1 + rnd(), 1 }
31 sphere { <0.5 - rnd(), 0.5 - rnd(), 0.5 - rnd()>, .1 + rnd(), 1 }
32 sphere { <0.5 - rnd(), 0.5 - rnd(), 0.5 - rnd()>, .1 + rnd(), 1 }
33 sphere { <0.5 - rnd(), 0.5 - rnd(), 0.5 - rnd()>, .1 + rnd(), 1 }
34 sphere { <0.5 - rnd(), 0.5 - rnd(), 0.5 - rnd()>, .1 + rnd(), 1 }
35 sphere { <0.5 - rnd(), 0.5 - rnd(), 0.5 - rnd()>, .1 + rnd(), 1 }
36 sphere { <0.5 - rnd(), 0.5 - rnd(), 0.5 - rnd()>, .1 + rnd(), 1 }
37 sphere { <0.5 - rnd(), 0.5 - rnd(), 0.5 - rnd()>, .1 + rnd(), 1 }
38 sphere { <0.5 - rnd(), 0.5 - rnd(), 0.5 - rnd()>, .1 + rnd(), 1 }
39 sphere { <0.5 - rnd(), 0.5 - rnd(), 0.5 - rnd()>, .1 + rnd(), 1 }
40 sphere { <0.5 - rnd(), 0.5 - rnd(), 0.5 - rnd()>, .1 + rnd(), 1 }
41 sphere { <0.5 - rnd(), 0.5 - rnd(), 0.5 - rnd()>, .1 + rnd(), 1 }
42 sphere { <0.5 - rnd(), 0.5 - rnd(), 0.5 - rnd()>, .1 + rnd(), 1 }
43 sphere { <0.5 - rnd(), 0.5 - rnd(), 0.5 - rnd()>, .1 + rnd(), 1 }
44 sphere { <0.5 - rnd(), 0.5 - rnd(), 0.5 - rnd()>, .1 + rnd(), 1 }
45 sphere { <0.5 - rnd(), 0.5 - rnd(), 0.5 - rnd()>, .1 + rnd(), 1 }
46 sphere { <0.5 - rnd(), 0.5 - rnd(), 0.5 - rnd()>, .1 + rnd(), 1 }
47 sphere { <0.5 - rnd(), 0.5 - rnd(), 0.5 - rnd()>, .1 + rnd(), 1 }
48 sphere { <0.5 - rnd(), 0.5 - rnd(), 0.5 - rnd()>, .1 + rnd(), 1 }
49 sphere { <0.5 - rnd(), 0.5 - rnd(), 0.5 - rnd()>, .1 + rnd(), 1 }
50 sphere { <0.5 - rnd(), 0.5 - rnd(), 0.5 - rnd()>, .1 + rnd(), 1 }
51 sphere { <0.5 - rnd(), 0.5 - rnd(), 0.5 - rnd()>, .1 + rnd(), 1 }
52 sphere { <0.5 - rnd(), 0.5 - rnd(), 0.5 - rnd()>, .1 + rnd(), 1 }
55 pigment{ color rgb <53 / 55, 44 / 55, 36 / 55>}
57 normal { bumps 1 scale (0.16 / rsize) }