home *** CD-ROM | disk | FTP | other *** search
/ World of Graphics / WOGRAPH.BIN / 504.SPOT.V < prev    next >
Text File  |  1992-03-14  |  944b  |  59 lines

  1.  
  2. /*
  3.     spot light demo -- shows 3 spot lights shining on the floor.
  4.         The leftmost one is fully illuminated all the way
  5.         across.  The rightmost one uses min_angle = 0 for
  6.         a smoother effect.  The middle one shows that going
  7.         half way leads to a great demonstration of Mach
  8.         banding.  :-)
  9. */
  10.  
  11. #include color.vc
  12.  
  13. studio {
  14.     from 0 -10 8
  15.     at 0 0 0
  16.     up 0 0 1
  17.     angle 60
  18.     res 640 480
  19.     antialias quick
  20.     threshold 2
  21.     aspect 4/3
  22.     background { greys.map }
  23.  
  24.     ambient white * .1
  25. }
  26.  
  27. light {
  28.     type spot
  29.     color white * 10
  30.     falloff 1
  31.     position -4 0 10
  32.     direction 0 .3 -1
  33.     min_angle 20
  34.     max_angle 20
  35. }
  36. light {
  37.     type spot
  38.     color white * 10
  39.     falloff 1
  40.     position 0 0 10
  41.     direction 0 0 -1
  42.     min_angle 10
  43.     max_angle 20
  44. }
  45. light {
  46.     type spot
  47.     color white * 10
  48.     falloff 1
  49.     position 4 0 10
  50.     direction 0 -.3 -1
  51.     min_angle 0
  52.     max_angle 20
  53. }
  54.  
  55. surface {
  56.     diff white
  57. }
  58. ring { center 0 0 0 normal 0 0 1 radius 10000 }
  59.