Advertisement
Guest User

Untitled

a guest
May 14th, 2017
67
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.      texture {grain1}}
  18.  
  19.      triangle {<0,0,0>, <1,0,0>, <0,0,1>
  20.      texture {grain1}}
  21.  
  22.      triangle {<0,0,0>, <0,1,0>, <0,0,1>
  23.      texture {grain1}}
  24.  
  25.      triangle {<1,0,0>, <0,1,0>, <0,0,1>
  26.      texture {grain1}}
  27.  
  28.      inside_vector <1,1,1>
  29.   }
  30.  
  31.   box{ <0.5,-0.5,-0.5>, <1.2,1.2,1.2>}
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement