material planet_grassy
{
    receive_shadows on
    technique
    {       
        pass
        {          
            lighting off
	depth_write on

            texture_unit
            {               
                texture base_grass.tga               
                 scale 0.12 0.12             
            }
        }

	pass
        {            
            lighting off
		depth_write on          
            scene_blend alpha_blend            
            depth_func equal
          
            texture_unit
            {
                texture base_frozen_a.tga    
               
                alpha_op_ex source1 src_texture src_texture               
                colour_op_ex source2 src_texture src_texture
            }
          
            texture_unit
            {
                texture base_frozen.tga
		     scale 0.12 0.12               
                colour_op_ex blend_diffuse_alpha src_texture src_current
            }
        }

       
        pass
        {
		lighting on                   

            depth_func equal
            scene_blend zero src_colour
        }
    }
}


material planet_dry
{
    receive_shadows on

    technique
    {       
        pass
        {          
            lighting off
		depth_write on

            texture_unit
            {               
                texture base_grass.tga               
                 scale 0.12 0.12             
                
            }
        }

      
        pass
        {            
            lighting off
		depth_write on

            
            scene_blend alpha_blend            
            depth_func equal

         
            texture_unit
            {
                texture base_peb_a.tga
		    scale 1.0 1.0

                alpha_op_ex source1 src_texture src_texture                
                colour_op_ex source2 src_texture src_texture
            }
           
            texture_unit
            {
                texture base_peb.tga
		     scale 0.12 0.12                
                colour_op_ex blend_diffuse_alpha src_texture src_current
            }
        }
     
        pass
        {
		lighting on                

            depth_func equal
            scene_blend zero src_colour
        }
    }
}

material planet_icecap
{
technique
	{
		pass
		{
			texture_unit
			{
				texture base_icecap.tga                
               		scale 0.6 0.6             
			}							
		
			texture_unit
			{
				texture skybox.tga				
				colour_op_ex add src_texture src_current
				colour_op_multipass_fallback one one
				env_map planar				
			}
		}
	}
}


