home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Raytrace & Morphing / SOS-RAYTRACE.ISO / programm / raytrace / rayce27 / test5.r < prev    next >
Encoding:
Text File  |  1994-01-20  |  1.3 KB  |  65 lines

  1. // testfile by George Kyriazis
  2.  
  3. #include "colors.inc"
  4.  
  5. camera {
  6.   fov 85
  7.   aspect 1.333
  8.   location <2.5, -0.5, -2>
  9.   direction <-1, 0, 1>
  10.   sky <0, 1, 0.4>
  11. }
  12.  
  13. options {
  14.   background y color red 0.2 green 0.2 blue 0.2
  15.   iterations 1
  16.   time 0.0, 0.2
  17. }
  18.  
  19. #declare light = object {
  20.   light_source { <-5, 2, 3> color rgb <1.6> }
  21. }
  22.  
  23. object { light }
  24.  
  25. #declare beauty = object {
  26.   sphere { <-0.4, -0.3, 2.6>, 1 }
  27.   texture {
  28.     ambient color red 0.0 green 0.1 blue 0.1
  29.     diffuse color red 0.0 green 0.1 blue 0.1
  30.     specular color red 0.1 green 0.3 blue 0.3
  31.     reflection color red 1 green 1 blue 0.3
  32.     reflection 0.5
  33.     roughness 0.01
  34.   }
  35.   speed <1, 0, 0>
  36. }
  37.  
  38. #declare table = object {
  39.   polygon { <-5, -2, -1>, <-5, -2, 5>, <5, -2, 5>, <5, -2, -1> }
  40.   texture {
  41.     ambient color red 0.1 green 0.1 blue 0.1
  42.     diffuse color red 0.5
  43.     specular color red 0.9
  44.     reflection color red 0.5 green 0.5 blue 0.5
  45.     reflection 0.5
  46.     roughness 0.1
  47.     reflect_angle 14
  48.   }
  49. }
  50.  
  51. #declare mirror = object {
  52.   polygon { <-1.5, -2, 0>, <-1.5, -2, 1.9>, <-1.5, 1, 1.9>, <-1.5, 1, 0> }
  53.   texture {
  54.     ambient color red 0.1 green 0.1 blue 0.4
  55.     diffuse color red 0.1 green 0.1 blue 0.4
  56.     specular color red 0.1 green 0.1 blue 0.1
  57.     reflection color red 1 green 1 blue 0.1
  58.     roughness 1
  59.   }
  60. }
  61.  
  62. object { beauty }
  63. object { mirror }
  64. object { table }
  65.