


// Extremly good Land texture.  Slightly Fractalish.
#declare Land1 = texture {
    pigment
    {
    leopard
    turbulence 0.86
	omega 0.77
	lambda 4.5

       color_map
       {
            [0.0 0.31 color Clear filter 1.0 color Clear]
            [0.31 0.61 color ForestGreen filter 0.0 color Green]
            [0.61 0.64 color DarkGreen filter 0.0 color GreenYellow]
            [0.64 0.67 color PaleGreen filter 0.0 color LightGrey]
			[0.67 0.69 color blue 0.8 filter 0.0 color Blue]
            [0.69 0.72 color LightGrey filter 0.0 color LightGrey]
            [0.72 0.73 color DarkOliveGreen filter 0.0 color IndianRed]
            [0.73 0.75 color LimeGreen filter 0.0 color SeaGreen]
            [0.75 0.78 color SeaGreen filter 0.0 color ForestGreen]
            [0.78 1.0 color Clear filter 1.0 color Clear]
       }
    }

    finish
    {
    diffuse 0.9
    }
    rotate <-20, 0, 0>
    scale 0.25
}

// Pretty good Terran clouds.
#declare Clouds1 = texture
{
    pigment
    {
        granite
		turbulence <0.19, 0.17, 0.23>
		omega 0.26
		lambda 3.6
        color_map
        {
            [0.0 0.29 color Clear filter 1.0 color Clear filter 1.0]
            [0.29 0.48 color Clear filter 1.0 color VLightGrey filter 0.4]
						[0.48 0.55 color VLightGrey filter 0.3 color Gray90 filter 0.2]
            [0.55 0.60 color Gray90 filter 0.2 color Gray95 filter 0.1]
            [0.51 1.0 color White filter 0.0 color White filter 0.0]
        }
    }
    finish
    {
        diffuse 0.83
    }
	scale 1.3
}

#declare Clouds2 =
texture
{
   pigment {
      bozo
      turbulence 1.0
      colour_map {
         [0.0 0.4 colour red 1.0 green 1.0 blue 1.0 filter 1.0
                  colour red 1.0 green 1.0 blue 1.0 filter 1.0]
         [0.4 0.9 colour red 1.0 green 1.0 blue 1.0 filter 1.0
                  colour red 1.0 green 1.0 blue 1.0]
         [0.9 1.0 colour red 1.0 green 1.0 blue 1.0
                  colour red 1.0 green 1.0 blue 1.0]
      }
      scale <1.2, 0.3, 1.2>
      rotate <30.0, 0.0, -45.0>
   }
   finish {
      ambient 0.0
      diffuse 1.0
   }
}




// Very odd ocean/land mass type of texture.  Possibly useful.
#declare Ocean1 = texture {
    pigment
    {
      agate
      agate_turb 1.3
        colour_map
        {
        [0.0 0.1   colour DarkTurquoise filter 0.0
        colour NavyBlue]
        [0.1 0.3   colour Aquamarine filter 0.0
        colour MediumSeaGreen]
        [0.3 0.35   colour MediumAquamarine filter 0.0
        color MediumSlateBlue]
        [0.35 0.38   colour MidnightBlue filter 0.0
        colour Blue]
        [0.38 0.46   colour BlueViolet filter 0.0
        colour VLightGrey]
        [0.46 0.67   color CadetBlue filter 0.0
        color CornflowerBlue]
        [0.67 0.712  color LightBlue filter 0.0
        color LightSteelBlue]
        [0.712 0.823 color NewMidnightBlue filter 0.0
        color NeonBlue]
        [0.823 0.97  color DarkPurple filter 0.0
        color RichBlue]
        [0.97  1.0   color SlateBlue filter 0.0
        color MediumTurquoise]
        }
    }
    finish
    {
    diffuse 0.8
    }
}

// Very good multilayerd ocean texture.  Good basis for class 'M' Planets.
#declare Ocean2 = texture {
    pigment
    {
        agate
        agate_turb 0.5
        colour_map
        {
            [0.0 0.3 color blue 0.8  filter 0.0 color blue 1.0 ]
            [0.3 0.45 color blue 1.0 filter 0.0 color blue 0.65]
            [0.45 0.62 color blue 0.65 filter 0.0 color blue 0.93]
            [0.62 0.734 color blue 0.93 filter 0.0 color blue 0.34]
            [0.734 0.86 color Blue filter 0.0 color blue 0.65 green 0.1]
            [0.86 1.0 color blue 0.75 filter 0.0 color blue 0.84 green 0.2]
        }
    }
    finish
    {
    diffuse 0.9
    }
}


#declare Green_Planet =
texture
{
	pigment
	{
		leopard
		turbulence 0.58
		color_map
		{
			[0.00 0.12 color DarkGreen color ForestGreen]
			[0.12 0.32 color green 0.56 color green 0.27]
			[0.32 0.43 color green 0.34 color green 0.40]
			[0.43 0.53 color green 0.54 color green 0.63]
			[0.53 0.76 color ForestGreen color DarkGreen]
			[0.76 0.88 color green 0.28 color green 0.57]
			[0.88 0.93 color green 0.31 color green 0.54]
			[0.93 1.00 color green 0.57 color green 0.35]
		}
	}
	finish
	{
		ambient 0.2
		diffuse 0.83
	}
	scale .22
}



//  Standard Star Field.  Ok even by itself.
#declare Stars1 = texture {
	pigment
	{
		bozo
		turbulence 0.963
		omega 0.24
		lambda 6.4

		color_map
		{
			[0.0 0.195 color Black color Black]
			[0.195 0.197 color red 0.15 color red 0.53 green 0.14]
			[0.197 0.344 color Black color Black]
			[0.344 0.346 color blue 0.2 color rgb <0.48, 0.48, 0.48>]
			[0.346 0.765 color Black color Black]
			[0.765 0.765 color red 0.2 green 0.2 color rgb <0.43, 0.43, 0.0>]
			[0.766 0.932 color Black color Black]
			[0.932 0.934 color blue 0.16 color blue 0.53]
			[0.934 1.0 color Black color Black]
		}
	}
	finish
	{
		ambient 1.0
		diffuse 0.0
	}
    scale 0.0965
}

//  Background blue galaxies.  Adds another dimension to Stars1
#declare Galaxies1 = texture
{
	pigment
	{
		granite
		turbulence 0.56
		omega 0.174
		lambda 3.4

		color_map
		{
			[0.0 0.6 color Clear filter 1.0 color Clear filter 1.0]
			[0.66 0.67 color Clear filter 1.0 color blue 0.2 filter 0.3]
			[0.67 0.68 color blue 0.2 filter 0.0 color blue 0.36 filter 0.0]
			[0.68 0.69 color Clear filter 1.0 color Clear filter 1.0]
			[0.69 0.72 color Clear filter 1.0 color blue 0.34 filter 0.0]
			[0.72 0.721 color blue 0.39 filter 0.0 color Clear filter 1.0]
			[0.721 1.0 color Clear filter 1.0 color Clear filter 1.0]
		}
	}
	finish
	{
		ambient 1.0
		diffuse 0.0
	}
    scale 0.0965
}


#declare Corona1 = texture
{
	pigment
	{
		radial
		color_map
		{
			[0.0 0.014 color White filter 0.6 color Yellow filter 0.6]
			[0.014 0.033 color Yellow filter 0.7 color Yellow filter 0.95]
			[0.033 0.944 color White filter 1.0 color White filter 1.0]
			[0.966 0.986 color Yellow filter 0.95 color Yellow filter 0.7]
			[0.986 1.0 color Yellow filter 0.6 color White filter 0.6]
		}
		frequency 2
	}

}

#declare Moon_Surface1 = texture
{
	pigment
	{
		granite
		turbulence 0.22
		color_map
		{
			[0.0 0.075 color rgb <0.25, 0.25, 0.25> color rgb <0.66, 0.66, 0.66>]
			[0.075 0.31 color rgb <0.00, 0.00, 0.20> color rgb <0.00, 0.00, 0.70>]
			[0.31 0.43 color rgb <0.00, 0.00, 0.90>  color rgb <0.00, 0.00, 0.30>]
			[0.43 0.45 color rgb <0.00, 0.00, 0.30>  color rgb <0.00, 0.00, 1.0>]
			[0.45 0.63 color rgb <0.00, 0.00, 0.10> color rgb <0.0, 0.0, 0.50>]
			[0.63 0.84 color rgb <0.00, 0.00, 0.75> color rgb <0.00, 0.00, 0.95>]
			[0.84 1.0  color rgb <0.00, 0.00, 0.75> color rgb <0.00, 0.00, 0.30>]
		}
	}

	finish
	{
		diffuse 0.63
	}
	rotate <0, 0, -45>
}

#declare Crater1 = texture
{
	pigment
	{
		leopard
		turbulence 0.43
		lambda 3.1
		omega 0.35
		color_map
		{
			[0.0 0.23 color Clear filter 1.0 color Clear filter 1.0]
			[0.23 0.30 color rgb <0.00, 0.00, 0.40> filter 0.0 color rgb <0.00, 0.00 0.400> filter 0.0]
			[0.30 0.48 color rgb<0.00, 0.00, 0.60> filter 0.0 color rgb < 0.0, 0.0, 0.7> filter 0.0]
			[0.48 0.75 color rgb <0.00, 0.00, 0.80> filter 0.0 color Gray80 filter 0.0]
			[0.75 1.0 color Gray80 filter 0.0 color White filter 0.0]
		}
	}

	finish
	{
		diffuse 0.73
		crand 0.244
	}
	scale 0.06316

}


// Quick notation for a "Typical" moon.
#declare Moon1 =
texture {Moon_Surface1}
texture {Crater1}

// Quick notation for using both.
#declare Universe =
	texture {Stars1}
	texture {Galaxies1}

