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

  1. // Sample Polyray file
  2. // A gradient texture with changing 'alpha' values
  3. //
  4. viewpoint {
  5.    from <0, 2, -10>
  6.    at <0,0,0>
  7.    up <0,1,0>
  8.    angle 35
  9.    resolution 160, 160
  10.    aspect 1
  11.    }
  12.  
  13. include "..\colors.inc"
  14.  
  15. background midnightblue
  16.  
  17. light <-10, 7, -5>
  18.  
  19. object {
  20.    disc <0, -2.005, 0>, <0, 1, 0>, 10
  21.    texture { checker matte_white, matte_black }
  22.    }
  23.  
  24. define mirror_veined_marble
  25. texture {
  26.    layered
  27.       texture {
  28.      special surface {
  29.         color color_map(
  30.           [0.0, 0.4, white, 0,   white, 0]
  31.           [0.4, 0.6, white, 0,   black, 0.2]
  32.           [0.6, 1.0, black, 0.2, black, 1])[marble_fn]
  33.         ambient 0.3
  34.         diffuse 0.8
  35.         specular 0.3
  36.         microfacet Cook 5
  37.         }
  38.      },
  39.       mirror
  40.    }
  41.  
  42. object {
  43.    sphere <0, 0, 0>, 2
  44.    mirror_veined_marble
  45.    }
  46.