home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / p / ply15dat.zip / LAYERTX.PI < prev    next >
Text File  |  1992-10-19  |  975b  |  54 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 position_objectx 1
  25. define lookup_sawtooth  1
  26.  
  27. define mirror_veined_marble
  28. texture {
  29.    layered
  30.       texture {
  31.      noise surface {
  32.         color white
  33.         position_fn position_objectx
  34.         lookup_fn lookup_sawtooth
  35.         octaves 3
  36.         turbulence 3
  37.         ambient 0.3
  38.         diffuse 0.8
  39.         specular 0.3
  40.         microfacet Reitz 5
  41.         color_map(
  42.            [0.0, 0.6, white, 0,   white, 0]
  43.            [0.6, 0.8, white, 0,   black, 0.2]
  44.            [0.8, 1.0, black, 0.2, black, 1])
  45.         }
  46.      },
  47.       mirror
  48.    }
  49.  
  50. object {
  51.    sphere <0, 0, 0>, 2
  52.    mirror_veined_marble
  53.    }
  54.