//////////////////////////////////////////////////////
// Persistence of Vision Raytracer
//#version 3.6; // 3.7;
// Test sk_sphere2.pov
// 2021-02-21
//////////////////////////////////////////////////////

 #include "colors.inc"
 #include "metals.inc"

  camera {
    location <0, 1, -4>
    look_at <0, 2, 0>
    angle 90
  }
  light_source { <10, 10, -10> Red }

//Sphere
  sphere {
    2.5*y, 1
    pigment { color rgb <1, 1, 1> }
    finish { ambient 0.2 diffuse 0 reflection 0.9 }
  }

//Sky sphere
  sky_sphere {
    pigment {
      gradient y*0.5
      color_map {
        [0 color Red]
        [1 color Blue]
      }
      scale 2
      translate -1
    }
  }

//Create a "floor"
//plane {
//  <0,1,0>, 0            //This represents the plane 0x+0y+z=0
//  texture { T_Silver_3A }  
//}

  plane {
    y,0
    texture {
      pigment { SeaGreen }
      finish { reflection .35 specular 1 }
      normal { ripples .35 turbulence .5 scale .25 }
    }
  }

 sky_sphere {
    pigment {
      gradient y
      color_map {
        [0.000 0.002 color rgb <1.0, 0.2, 0.0>
                     color rgb <1.0, 0.2, 0.0>]
        [0.002 0.200 color rgb <0.8, 0.1, 0.0>
                     color rgb <0.2, 0.2, 0.3>]
      }
      scale 2
      translate -1
    }
    pigment {
      bozo
      turbulence 0.75
      octaves 6
      omega 0.7
      lambda 2
      color_map {
          [0.0 0.1 color rgb <0.85, 0.85, 0.85>
                   color rgb <0.75, 0.75, 0.75>]
          [0.1 0.5 color rgb <0.75, 0.75, 0.75>
                   color rgbt <1, 1, 1, 1>]
          [0.5 1.0 color rgbt <1, 1, 1, 1>
                   color rgbt <1, 1, 1, 1>]
      }
      scale <0.2, 0.5, 0.2>
    }
    rotate -135*x
  }