home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1995 January / pcw-0195.iso / polymore / fig2-3.pi < prev    next >
Text File  |  1994-09-26  |  1KB  |  61 lines

  1. //FIG2-3.PI
  2.  
  3. include "d:\polyray\include\colors.inc"
  4. include "d:\polyray\include\texture.inc"
  5.  
  6. viewpoint {
  7.  from      <0, 1, -2.5>
  8.  at        <1, 2, 0>
  9.  up        <0.0, 1.0, 0.0>
  10.  angle 100
  11.  }
  12.  
  13. // LIGHT_SOURCE
  14.     light <-10, 10, -10>
  15.  
  16. haze 0.95, 10, black
  17.  
  18. // PLANE (Polygon)
  19. object {
  20.    polygon 4, <-100,0,100>, <-100,0,-100>, <100,0,-100>, <100,0,100>
  21.    matte_white
  22. }
  23.  
  24. // SPHERE
  25. object {
  26.     sphere <1, 1, 0>, 1
  27.     scale<2, 1, 1>
  28.     texture
  29.     {
  30.        surface
  31.        {
  32.           color red
  33.           ambient 0.1
  34.           diffuse 0.7
  35.           specular white, 0.5
  36.           reflection white, 0.1
  37.           transmission white, 0.1,1
  38.        }
  39.     }
  40. }
  41.  
  42. // SPHERE
  43. object {
  44.     sphere <1, 1, 0>, 1
  45.     scale<2, 1, 1>
  46.     texture
  47.     {
  48.        surface
  49.        {
  50.           color red
  51.           ambient 0.1
  52.           diffuse 0.7
  53.           specular white, 0.5
  54.           reflection white, 0.1
  55.           transmission white, 1.0,1
  56.        }
  57.     }
  58.     rotate<0, 0, 45>
  59. }
  60.  
  61.