home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 16 / CD_ASCQ_16_0994.iso / news / 4613 / transpar.rrt < prev    next >
Text File  |  1980-01-06  |  736b  |  53 lines

  1. // Real Ray Tracer
  2. // Example of transparency
  3.  
  4. #include "colors.inc"
  5. #include "textures.inc"
  6.  
  7. object {
  8.   sphere { <0 0 0> 0.3 }
  9.   texture {
  10.     Phong_Transparent
  11.     ior 1.76
  12.   }
  13. }
  14.  
  15. object {
  16.   sphere { <-1 -0.45 3> 0.4 }
  17.   texture {
  18.     color Red
  19.     ambient 0.15
  20.     diffuse 0.30
  21.     phong 0.25
  22.     phong_size 75
  23.   }
  24. }
  25.  
  26. object {
  27.   plane { <0 1 0> -1 }
  28.   texture {
  29.     checker color Yellow color red 1.0 blue 0.75
  30.     scale <1 0 1>
  31.     ambient 0.15
  32.     diffuse 0.30
  33.   }
  34. }
  35.  
  36. camera {
  37.   location <0 1 -3>
  38.   point_at <0 0 0>
  39.   angle 15
  40. }
  41.  
  42. environment { background color Blue }
  43.  
  44. object {
  45.   light_source { <2 5 -4> color White }
  46. }
  47.  
  48. object {
  49.   light_source { <-3 4 -3> color White }
  50. }
  51.  
  52. end.
  53.