home *** CD-ROM | disk | FTP | other *** search
/ ANews 3 / AnewsCD3.iso / atari / GRAPHX / POV / 68030.060 / POV31G30 / POVRAY_3.1G / SCENES / LIGHTS / SPOTLITE.POV < prev   
Text File  |  1999-10-30  |  1KB  |  79 lines

  1. // Persistence Of Vision raytracer version 3.1 sample file.
  2. // Spotlight example
  3. // File by Alexander Enzmann & Drew Wells
  4.  
  5. global_settings { assumed_gamma 2.2 }
  6.  
  7. #include "colors.inc"
  8. #include "textures.inc"
  9.  
  10.  
  11. camera {
  12.    location <0, 5, -12>
  13.    direction <0, 0, 1.5>
  14.    up      <0, 1, 0>
  15.    right   <4/3, 0, 0>
  16.    look_at <0, 0, 0>
  17. }
  18.  
  19. // This is the spotlight.
  20. light_source {
  21.    <10, 10, 0> color red 1 green 1 blue 0.5
  22.    spotlight
  23.    point_at <0, 1, 0>
  24.    tightness 50
  25.    radius 11
  26.    falloff 25
  27.  
  28.    looks_like {
  29.       sphere {
  30.          <10, 10, 0>, 0.5
  31.          texture {
  32.             pigment { White }
  33.             finish { Luminous }
  34.          }
  35.       }
  36.    }
  37. }
  38.  
  39. light_source {
  40.    <-10, 10, 0> color red 0.5 green 0.5 blue 1.0
  41.    spotlight
  42.    point_at <0, 1, 0>
  43.    tightness 50
  44.    radius 11
  45.    falloff 25
  46. }
  47.  
  48. light_source {
  49.    <0, 10, -10> color red 1.0 green 0.1 blue 0.1
  50.    spotlight
  51.    point_at <0, 1, 0>
  52.    tightness 20
  53.    radius 11
  54.    falloff 35
  55. }
  56.  
  57. // Create a sphere with a checker texture
  58. sphere { <0, 0, 0>, 2
  59.    pigment { Sapphire_Agate }
  60.    finish {
  61.       specular 0.6
  62.       ambient 0.2
  63.       diffuse 0.8
  64.    }
  65. }
  66.  
  67. // Create a ground plane
  68. plane { y, -2.01
  69.  
  70.    pigment {
  71.       checker colour White colour DarkSlateGrey
  72.       scale 2 
  73.    }
  74.    finish {
  75.       ambient 0.2
  76.       diffuse 0.8
  77.    }
  78. }
  79.