// Persistence Of Vision Raytracer version 1.0 sample file.

//------------ world sphere { w/ Violet Clouds

#declare Violet_Sky = texture {
   gradient <0 1 0>

   colour_map {
      [0.000 0.339   colour red  0.208  green  0.067  blue  0.235  alpha  0.000
      colour red  0.498  green  0.165  blue  0.514  alpha  0.000]
      [0.339 0.559   colour red  0.498  green  0.165  blue  0.514  alpha  0.000
      colour red  0.624  green  0.165  blue  0.514  alpha  0.000]
      [0.559 0.686   colour red  0.624  green  0.165  blue  0.514  alpha  0.000
      colour red  0.835  green  0.400  blue  0.514  alpha  0.000]
      [0.686 0.983   colour red  0.835  green  0.400  blue  0.514  alpha  0.000
      colour red  0.988  green  0.651  blue  0.631  alpha  0.000]
      [0.983 1.001   colour red  0.988  green  0.651  blue  0.631  alpha  0.000
      colour red  0.208  green  0.067  blue  0.235  alpha  0.000]
   }
}

#declare deeper12 = texture {
   gradient < 0 1 0 >
   colour_map {
      [0.000 0.558   colour red  0.133  green  0.008  blue  0.212  alpha  0.375
      colour red  0.471  green  0.400  blue  0.506  alpha  0.9000]
      [0.558 0.983   colour red  0.471  green  0.400  blue  0.506  alpha  0.9000
      colour red  1.000  green  0.996  blue  0.996  alpha  0.8000]
      [0.983 1.001   colour red  1.000  green  0.996  blue  0.996  alpha  0.8000
      colour red  0.133  green  0.008  blue  0.212  alpha  0.375]
   }
}

#declare cloud12 = texture {
   turbulence 0.8
   bozo
   colour_map {
      [0.000 0.212   colour red  1.000  green  1.000  blue  1.000  alpha  1.000
      colour red  1.000  green  1.000  blue  1.000  alpha  1.000]
      [0.212 0.534   colour red  1.000  green  1.000  blue  1.000  alpha  1.000
      colour red  0.341  green  0.137  blue  0.302  alpha  0.604]
      [0.534 0.627   colour red  0.341  green  0.137  blue  0.302  alpha  0.604
      colour red  0.259  green  0.196  blue  0.302  alpha  0.471]
      [0.627 0.983   colour red  0.259  green  0.196  blue  0.302  alpha  0.471
      colour red  0.271  green  0.216  blue  0.365  alpha  0.404]
      [0.983 1.001   colour red  0.271  green  0.216  blue  0.365  alpha  0.404
      colour red  1.000  green  1.000  blue  1.000  alpha  1.000]
   }
}




#declare world12 = object {
   quadric { Ellipsoid scale <20000 10000 20000> inverse  }

   texture {
      Violet_Sky scale <40000 8000 400000> translate <0 5000 0>
      ambient 1.0 diffuse 0.0
   }

   //texture { deeper12 scale <40000 10000 400000> translate <6000 6000 0>
   //rotate <0 0 20>  }

   texture { cloud12 scale <20000 8000 10000> translate <20000 3000 0>
      rotate <0 0 0>  }

   texture { deeper12 scale <40000 10000 10000> translate <6000 6000 0>
      rotate <0 0 20> ambient 0.2 diffuse 0.3  }

}
