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

  1. // Sample Polyray file
  2. // A gradient texture with changing 'alpha' values
  3. //
  4. viewpoint {
  5.    from <0, 5, -10>
  6.    at <0,0,0>
  7.    up <0,1,0>
  8.    angle 35
  9.    resolution 256, 256
  10.    aspect 1
  11.    }
  12.  
  13. include "..\colors.inc"
  14.  
  15. background midnightblue
  16.  
  17. light 0.8*white, <-10, 7, -5>
  18. light 0.8*white, < 10, 7, -5>
  19.  
  20. define index_tex_map
  21. texture_map([0, 1, matte_white, shiny_coral])
  22.  
  23. object {
  24.    sphere <0, 0, 0>, 2
  25.    texture { indexed noise(3*P, 1), index_tex_map }
  26.    }
  27.  
  28. object {
  29.    disc <0, -2, 0>, <0, 1, 0>, 30
  30.    texture { special matte { color red_marble_map[granite_fn] } }
  31.    }
  32.