home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 13 Bitmap / 13-Bitmap.zip / povscn.zip / scenes / level1 / bumpmap.pov < prev    next >
Text File  |  1993-09-28  |  795b  |  38 lines

  1. // Persistence Of Vision raytracer version 2.0, sample file.
  2.  
  3. // Bump map test file by CdW!
  4. // NOTE: Calls for "bumpmap_.gif", but any 320x200 gif will work.
  5.  
  6. #include "colors.inc"
  7.  
  8. camera {
  9.    location  <0, 0, -120>
  10.    direction <0, 0,  1.5>
  11.    up        <0, 1,  0>
  12.    right   <4/3, 0,  0>
  13.    look_at   <0, 0,  0>
  14. }
  15.  
  16. sphere { <0, 0, 0>, 25
  17.    pigment {Blue}
  18.  
  19.    normal {
  20.       bump_map {
  21.          gif "bumpmap_.gif"  
  22.          bump_size 5
  23.          interpolate 2
  24.          once
  25.       }
  26.       scale 50              /* scaled and translated into position  */
  27.       translate <-25, -25, 0>
  28.    }
  29.    finish {ambient 0.2 diffuse 0.7 specular 0.6}
  30. }
  31.  
  32. plane { y, -25
  33.    pigment {Gold}
  34.    finish {ambient 0.1 diffuse 0.5}
  35. }
  36.  
  37. light_source {<100,120,-130> colour White}
  38.