// Polyray 1.8 file to make a rough-textured moon (or rock) // based on one of Xander's spherical heightfield demo files // generate output.tga with the "gforge" program viewpoint { from <0,0,-16> at <0,0,0> up <0,1,0> angle 16 resolution 600,600 } background black light <-10,3, -20> define shiny_jpb texture { surface { ambient red, 0.05 diffuse white, 0.8 microfacet Reitz 10 } } // Define a hf surface define planet1 object { sheight_field "output.tga", 1/300, 2 shiny_jpb rotate <30, -60, 0> } define sphere1 object { sphere <0, 0, -100>, 100 } object { planet1 // & sphere1 shiny_jpb // rotate <30, -60, 0> }