Advertisement
Guest User

Untitled

a guest
May 14th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. background {color rgb<1,1,1>}
  2. camera {
  3. location <5, 3, 1>
  4. look_at <0, 0, 0>
  5. angle 35
  6. }
  7. light_source { <5, 4, 3> rgb<1, 1, 1> }
  8.  
  9. #declare grain1 =
  10.   texture { pigment { rgb <1,0,0> } finish {ambient 0.2} }
  11.  
  12. difference
  13. {
  14.   mesh
  15.   {
  16.      triangle {<0,0,0>, <1,0,0>, <0,1,0>}
  17.      triangle {<0,0,0>, <1,0,0>, <0,0,1>}
  18.      triangle {<0,0,0>, <0,1,0>, <0,0,1>}
  19.      triangle {<1,0,0>, <0,1,0>, <0,0,1>}
  20.  
  21.      inside_vector <1.,0,0>
  22.   }
  23.  
  24.   box{ <0.5,-0.5,-0.5>, <1.2,1.2,1.2>}
  25.  
  26.  texture {grain1}
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement