// Persistence of Vision Ray Tracer Scene Description File
// File: ?.pov
// Vers: 3.6
// Desc: Basic Scene Example
// Date: mm/dd/yy
// Auth: ?
//

#version 3.7;

#include "colors.inc"

global_settings {
  
}

// ----------------------------------------

camera {
  location  <10.0, 9.5, -18.0>
  direction 1.5*z
  right     x*image_width/image_height
  look_at   <0.0, 0.0,  0.0>
}

sky_sphere {
  pigment {
    gradient y
    color_map {
      [0.0 rgb 1]
      [0.7 rgb 1]
    }
  }
}




#declare o=
mesh { 
  

  triangle { < 2,  2,  2> ,<-2,  2, -2>,  <-2,  2,  2>}  
  triangle { <-2, -2, -2>, <-2,  2, -2>, <-2,  2,  2> }
  triangle { <-2,  2,  2>, < 2,  2,  2>, < 2, -2,  2> }
  texture
  { // remaining triangles get this texture
    pigment { slope { z+x } pigment_map{ [0 color rgb 0][0.25 color red 1][0.25 color rgb <1,1,0>]
    [0.50 color rgb <0,1,1>][0.50 color blue 1][0.75 color rgb <1,1,0>][0.75 color rgb 0]
    [1 color rgb 1]} }
    finish { ambient 1.0 diffuse 0.0 }
  }
}

#declare p = 
intersection { box { -2,2 }
plane { x-y-z,-1.2}
     texture
  { // remaining triangles get this texture
    pigment { slope { z+2*x } pigment_map{ [0 color rgb 0][0.25 color red 1][0.25 color rgb <1,1,0>]
    [0.50 color rgb <0,1,1>][0.50 color blue 1][0.75 color rgb <1,1,0>][0.75 color rgb 0]
    [1 color rgb 1]} }
    finish { ambient 1.0 diffuse 0.0 }
  }
   }  
  
   
object { p translate -5*x }
object { p rotate 220*y+20*x    translate 3*x }       



plane { -z,  -10 texture { pigment { color rgb 1} }  finish { ambient 0 reflection 1.0 }}  
plane { x,  -10 texture { pigment { color rgb 1}  }  finish { ambient 0 reflection 1.0 }}