home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / graphics / ftpovscn / 1 / spotlite.pov < prev    next >
Text File  |  1992-07-21  |  1KB  |  80 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   <1.333 0 0>
  13.    look_at <0 0 0>
  14. }
  15.  
  16. // This is the spotlight.
  17. object {
  18.    union {
  19.       sphere { <10 10 0> 0.5 }
  20.       light_source {
  21.          <10 10 0>
  22.          color red 1 green 1 blue 0.5
  23.          spotlight
  24.          point_at <0 1 0>
  25.          tightness 50
  26.          radius 11
  27.          falloff 25
  28.       }
  29.    }
  30.    no_shadow
  31. }
  32.  
  33. object {
  34.    light_source {
  35.       <-10 10 0>
  36.       color red 0.5 green 0.5 blue 1.0
  37.       spotlight
  38.       point_at <0 1 0>
  39.       tightness 50
  40.       radius 11
  41.       falloff 25
  42.  
  43.    }
  44. }
  45.  
  46. object {
  47.    light_source {
  48.       <0 10 -10>
  49.       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. object {
  59.    sphere { <0 0 0> 2 }
  60.    texture {
  61.       Sapphire_Agate
  62.       specular 0.6
  63.       //phong 1
  64.       //phong_size 10
  65.       ambient 0.2
  66.       diffuse 0.8
  67.    }
  68. }
  69.  
  70. // Create a ground plane
  71. object {
  72.    plane { <0.0  1.0  0.0> -2.01 }
  73.    texture {
  74.       checker colour White colour DarkSlateGrey
  75.       scale < 2 2 2 >
  76.       ambient 0.2
  77.       diffuse 0.8
  78.    }
  79. }
  80.