fragment_program Caelum/PrecipitationFP cg
{
	source Precipitation.cg
	entry_point MainFP
	profiles ps_3_0 fp40 arbfp1
	
	default_params
	{
		param_named_auto time time
		param_named_auto view_direction view_direction
		param_named_auto view_side_vector view_side_vector
		param_named_auto view_up_vector view_up_vector
	}
}

vertex_program VDS/PrecipitationVP cg
{
	source Precipitation.cg
	entry_point MainVP
	profiles vs_1_1 arbvp1
	
	default_params
	{
		param_named_auto worldviewproj_matrix worldviewproj_matrix
	}
}

material Caelum/PrecipitationMaterial
{
	technique Default
	{
		pass Main
		{			
			vertex_program_ref VDS/PrecipitationVP
			{
			}
			
			fragment_program_ref Caelum/PrecipitationFP
			{
			}
			
			texture_unit Scene
			{			
			}
			
			texture_unit Precipitation
			{
                anim_texture precipitation_drizzle.png precipitation_rain.png precipitation_snow.png precipitation_snowgrains.png precipitation_icecrystals.png precipitation_icepellets.png precipitation_hail.png precipitation_smallhail.png 0
                filtering trilinear
			}
		}
	}
}
