Varasku

klucz

Mar 14th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. #include "colors.inc"
  2. #include "stones.inc"
  3. #include "textures.inc"
  4. #include "shapes.inc"
  5. #include "glass.inc"
  6. #include "metals.inc"
  7. #include "woods.inc"
  8. camera {
  9. location <0, 1, -10>
  10. look_at 0
  11. angle 36
  12. }
  13.  
  14. light_source {
  15. <0, 10, -3>
  16. color Red
  17. spotlight
  18. radius 50
  19. falloff 20
  20. tightness 10
  21. point_at <0, 0, 0>
  22. }
  23.  
  24.  
  25. torus{
  26. 0.08
  27. 0.03
  28. rotate <90,50,20>
  29. translate <0, 0, 1.25>
  30. texture { T_Gold_1A
  31. //normal { bumps 0.5 scale 0.15}
  32. finish { phong 1}
  33. } // end of texture
  34. }
  35.  
  36. torus{
  37. 0.08
  38. 0.03
  39. rotate <90,50,20>
  40. translate <-0.05, -0.02, 1.23>
  41. texture { T_Gold_1A
  42. //normal { bumps 0.5 scale 0.15}
  43. finish { phong 1}
  44. } // end of texture
  45.  
  46. }
  47.  
  48. torus{
  49. 0.08
  50. 0.03
  51. rotate <90,50,20>
  52. translate <-0.8, -0.29, 0.55>
  53. texture { T_Gold_1A
  54. //normal { bumps 0.5 scale 0.15}
  55. finish { phong 1}
  56. } // end of texture
  57.  
  58. }
  59.  
  60. sphere{
  61. <-1.3, -0.47, 0.14> 0.08
  62. texture { T_Gold_1A
  63. //normal { bumps 0.5 scale 0.15}
  64. finish { phong 1}
  65. } // end of texture
  66. }
  67.  
  68.  
  69.  
  70. intersection
  71. {
  72. cylinder{ //duży cylinder
  73. <-0.59, 0, 1>
  74. <-0.4, 0, 1>
  75. 0.6
  76.  
  77. texture { T_Gold_1A
  78. //normal { bumps 0.5 scale 0.15}
  79. finish { phong 1}
  80. } // end of texture
  81. rotate <-15, 20, 90>
  82. translate <0.8, 0.16, 3>
  83. }
  84. cylinder{ //duży cylinder
  85. <-0.59, 0, 1>
  86. <-0.4, 0, 1>
  87. 0.9
  88.  
  89. texture { T_Gold_1A
  90. //normal { bumps 0.5 scale 0.15}
  91. finish { phong 1}
  92. } // end of texture
  93. rotate <-15, 20, 90>
  94. translate <0.8, 0.16, 3>
  95. }
  96. }
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103. cylinder{
  104. <-1, 0, 1>
  105. <1, 0, 1>
  106. 0.08
  107. rotate <0, -40, 20>
  108. texture { T_Copper_3A
  109. //normal { bumps 0.5 scale 0.15}
  110. finish { phong 1}
  111. } // end of texture
  112.  
  113. }
  114.  
  115. box{
  116. <0, 0, 0>
  117. <0.5, 0.07, 0.08>
  118. rotate <-110, -45, 20>
  119. translate <-1.1, -0.5, 0.1>
  120. scale 1.1
  121. texture { T_Gold_1A
  122. //normal { bumps 0.5 scale 0.15}
  123. finish { phong 1}
  124. } // end of texture
  125. }
  126.  
  127.  
  128. box{
  129. <0, 0.3, 0>
  130. <0.5, 0.07, 0.08>
  131. rotate <-110, -45, 20>
  132. translate <-1.2, -0.5, 0.1>
  133. scale 1.1
  134. texture { T_Gold_1A
  135. //normal { bumps 0.5 scale 0.15}
  136. finish { phong 1}
  137. } // end of texture
  138. }
  139.  
  140.  
  141. plane{ <0,-2,0>, 1
  142. texture{ pigment{ checker color rgb<1,2,1>*1.2 color rgb<0.25,2.15,0.1>*0}
  143.  
  144. finish { phong 0.1}
  145. }
  146. }
Add Comment
Please, Sign In to add comment