home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1995 January / pcw-0195.iso / polyray / dat / misc / backgrnd.pi < prev    next >
Text File  |  1994-12-31  |  393b  |  8 lines

  1. // Image mapping to the background
  2. viewpoint { from <0, 0, -10> angle 20 resolution 128, 128 antialias 0 }
  3. define img1 image("testimg.jpg")
  4. background (w == 0 ? planar_imagemap(img1, P)
  5.                    : spherical_imagemap(img1, N))
  6. object { sphere <-1, 1, 0>, 0.5 texture { surface { reflection 1 } } }
  7. object { sphere < 1, -1, 0>, 0.5 texture { surface { transmission 1, 5.5 } } }
  8.