home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / p / ply15dat.zip / LIGHTTST.PI < prev    next >
Text File  |  1992-09-19  |  880b  |  45 lines

  1. // Generic Polyray input File
  2. // Polyray input file: Alexander Enzmann
  3.  
  4. // Set up the camera
  5. viewpoint {
  6.    from <0,0,-8>
  7.    at <0,0,0>
  8.    up <0,1,0>
  9.    angle 45
  10.    hither 1
  11.    resolution 256, 256
  12.    }
  13.  
  14. background <0, 0, 0>
  15. light <0.6, 0.2, 0.2>, <-10,   3, -20>
  16. light <0.2, 0.6, 0.2>, <  3,  10, -20>
  17. light <0.2, 0.2, 0.6>, < -3, -10, -20>
  18.  
  19. define shiny_red
  20. texture {
  21.    surface {
  22.       ambient red, 0.2
  23.       diffuse red, 0.8
  24.       specular white, 0.7
  25.       microfacet Reitz 10
  26.       }
  27.    }
  28.  
  29. define milky_white
  30. texture {
  31.    surface {
  32.       ambient 0.1
  33.       diffuse 0.3
  34.       reflection 0
  35.       transmission white, 0.8, 1.0
  36.       }
  37.    }
  38.  
  39. object { sphere <0, 0, 0>, 0.5 shiny_red }
  40. object { sphere <0, 0, 0>, 2 milky_white }
  41. object {
  42.    disc <0, 0, 4>, <0, 0, -1>, 30
  43.    texture { surface { ambient 0.1 diffuse 0.4 specular 0 } }
  44.    }
  45.