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

  1. // Shows how the alpha/opacity bit affects image mapping
  2. viewpoint {
  3.    from <0,5,-10>
  4.    at <0,0,0>
  5.    up <0,1,0>
  6.    angle 30
  7.    resolution 256, 256
  8.    }
  9.  
  10. include "../colors.inc"
  11. background white
  12. light <-10, 30, -20>
  13.  
  14. define sphimg image("m22u.tga")
  15.  
  16. define sphmap_tex
  17. texture {
  18.    special surface {
  19.       color planar_imagemap(sphimg, <4*u, 0, 2*v>, 1)
  20.       ambient 0.1
  21.       diffuse 0.7
  22.       specular white, 0.5
  23.       microfacet Cook 5
  24.       }
  25.    }
  26.  
  27. object { sphere <0, 0, 0>, 2 sphmap_tex }
  28.