#declare light_moon = texture {
	pigment {
		image_map {
			png "moon_small.png"
			map_type 1
			interpolate 2
		}
	}
	finish {
		ambient .7
	}
}

//dark side of the moon
#declare dark_moon = texture {
	pigment {
		image_map {
			png "moon_small.png"
			map_type 1
			interpolate 2
		}
	}
	finish {
		ambient .1
	}
}

//blue moon
#declare blue_moon = texture {dark_moon }
texture {
	pigment {
		color rgbf <.25, .2, .85, .35>
	}
	finish {
		ambient .1
	}
}


//'clear' moon
#declare clear_moon = texture {
	pigment {
		rgbf <1,1,1,1>
	}
}
#declare WaxingMoon = sphere {
	<0,0,0> 1
	texture {
		spherical
		texture_map {
			[0.0 clear_moon]
			[0.21	clear_moon]
			[0.41 light_moon]
			[1.0 light_moon]
		}
		translate <-.5,0,0>
		scale 2
	}
}

#declare Moon = sphere {
	<0,0,0> 1
	texture {
		spherical
		texture_map {
			[0.0 blue_moon]
			[0.21	blue_moon]
			[0.41 light_moon]
			[1.0 light_moon]
		}
		translate <-.5,0,0>
		scale 2
	}
}
