fragment_program Ogre/Compositor/GlassFP_GL glsl glsles
{
	source compositors/GlassFP.glsl
  default_params
	{
		param_named RT int 0
		param_named NormalMap int 1
	}
}

fragment_program Ogre/Compositor/GlassFP_HLSL hlsl glslang
{
	source compositors/GlassFP.glsl
}

fragment_program Ogre/Compositor/GlassFP unified
{
	delegate Ogre/Compositor/GlassFP_GL
	delegate Ogre/Compositor/GlassFP_HLSL
}

material Ogre/Compositor/GlassPass
{
	technique
	{
		pass
		{
			depth_check off
      polygon_mode_overrideable false

			vertex_program_ref Ogre/Compositor/StdQuad_Tex2_vp
			{
			}

			fragment_program_ref Ogre/Compositor/GlassFP
			{
			}

			texture_unit RT
			{
        tex_coord_set 0
				tex_address_mode clamp
				filtering linear linear linear
			}

			texture_unit
			{
				texture compositors/WaterNormal1.tga 2d
        tex_address_mode wrap
        tex_coord_set 0
				filtering linear linear linear
			}
		}
	}
}