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

  1. // Sample file demonstrating a spotlight.   
  2. // POV-Ray input file - Alexander Enzmann & CdW
  3.  
  4. #include "colors.inc"
  5. #include "textures.inc"
  6.  
  7.  
  8. camera {
  9.    location <0, 5, -12>
  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. // This is the spotlight.
  17. light_source {
  18.    <10, 10, 0> color red 1 green 1 blue 0.5
  19.    spotlight
  20.    point_at <0, 1, 0>
  21.    tightness 50
  22.    radius 11
  23.    falloff 25
  24.  
  25.    looks_like {
  26.       sphere {
  27.          <10, 10, 0>, 0.5
  28.          texture {
  29.             pigment { White }
  30.             finish { Luminous }
  31.          }
  32.       }
  33.    }
  34. }
  35.  
  36. light_source {
  37.    <-10, 10, 0> color red 0.5 green 0.5 blue 1.0
  38.    spotlight
  39.    point_at <0, 1, 0>
  40.    tightness 50
  41.    radius 11
  42.    falloff 25
  43. }
  44.  
  45. light_source {
  46.    <0, 10, -10> color red 1.0 green 0.1 blue 0.1
  47.    spotlight
  48.    point_at <0, 1, 0>
  49.    tightness 20
  50.    radius 11
  51.    falloff 35
  52. }
  53.  
  54. // Create a sphere with a checker texture
  55. sphere { <0, 0, 0>, 2
  56.    pigment { Sapphire_Agate }
  57.    finish {
  58.       specular 0.6
  59.       ambient 0.2
  60.       diffuse 0.8
  61.    }
  62. }
  63.  
  64. // Create a ground plane
  65. plane { y, -2.01
  66.  
  67.    pigment {
  68.       checker colour White colour DarkSlateGrey
  69.       scale 2 
  70.    }
  71.    finish {
  72.       ambient 0.2
  73.       diffuse 0.8
  74.    }
  75. }
  76.