AgungAlfiansyah

Untitled

May 11th, 2016
622
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //beri nama threeball.pov
  2. //render dengan menggunakan perintah $> povray threeball.pov -geometry 1024x768
  3.  
  4. camera {
  5.    location <0, 5, -10>
  6.    look_at <1, 3, 0>
  7. }
  8.  
  9. light_source {
  10.    <10, 15, -20>
  11.    color rgbf <2.0, 2.0, 2.0, 0.0>
  12. }
  13.  
  14. light_source {
  15.    <-5, 15, 20>
  16.    color rgbf <2.0, 2.0, 2.0, 0.0>
  17. }
  18.  
  19. background { color rgb <0.2 0.2 0.2> }
  20.    plane {<0, 1, 0>, -1
  21.    pigment {checker
  22.    color rgbf <0.0, 0.0, 0.0, 0.0>
  23.    color rgbf <1.0, 1.0, 1.0, 0.0>
  24.    }
  25.  
  26.    scale 15
  27. }
  28.  
  29. //Shiny Red Sphere
  30. sphere {
  31.    <0, 2, 1>, 3.0
  32.    pigment { color rgbf <1.0, 0.0, 0.0, 0.0>}
  33.    finish {
  34.    phong 0.8
  35.    reflection 0.5
  36.    }
  37. }
  38.  
  39. //Transparent Blue Sphere
  40. sphere {
  41.    <2, 2, -3>, 1.0
  42.    pigment { color rgbf <0.0, 0.0, 1.0, 0.9>}
  43.    finish {
  44.    phong 0.8
  45.    ambient 0.15
  46.    diffuse 0.75
  47.    reflection 0.25
  48.    refraction 1
  49.    ior 1.0
  50.    }
  51. }
RAW Paste Data