vertex_program test5_vs cg
{
source forumglass.cg
entry_point main_vs
profiles vs_1_1 arbvp1
}
 
fragment_program test5_ps cg
{
source forumglass.cg
entry_point main_ps
profiles ps_2_0 arbfp1
    default_params
    {
        param_named blend float 1.2
    }
}
 
 
material model_2_glassshader
{
	technique
	{
		pass
		{
			scene_blend alpha_blend
			depth_write off
			//alpha_rejection greater 128
			vertex_program_ref dec_glass_x2_vp
			{
				param_named_auto world world_matrix
				param_named_auto viewProj viewproj_matrix
				param_named_auto eyePositionWorld camera_position
			}
 
			fragment_program_ref dec_glass_x2_fp
			{
			}
 
			texture_unit
			{
				cubic_texture Mars.dds combinedUVW
				//alpha_op_ex source1 src_manual src_current 0.01
				colour_op modulate
				tex_address_mode clamp
			}
		}
	}
}