fragment_program Ogre/Compositor/OldTV_FP_GL glsl glsles
{
	source compositors/OldTV.glsl
  default_params
	{
		param_named RT int 0
		param_named Rand int 1
		param_named Noise int 2
	}
}

fragment_program Ogre/Compositor/OldTV_FP_HLSL hlsl glslang
{
	source compositors/OldTV.glsl
  target ps_2_a
}

fragment_program Ogre/Compositor/OldTV_FP unified
{
	delegate Ogre/Compositor/OldTV_FP_GL
	delegate Ogre/Compositor/OldTV_FP_HLSL
}

material Ogre/Compositor/OldTV
{
	technique
	{
		pass
		{
			depth_check off
      polygon_mode_overrideable false
			vertex_program_ref Ogre/Compositor/StdQuad_Tex2a_vp
			{
			}

			fragment_program_ref Ogre/Compositor/OldTV_FP
			{
				param_named distortionFreq float 0.8
				param_named distortionScale float 0.3
				param_named distortionRoll float 0.08
				param_named interference float 0.1
				param_named frameLimit float 0.40
				param_named frameShape float 0.18
				param_named frameSharpness float 6.0

				param_named_auto time_0_X time_0_x 120
				param_named_auto sin_time_0_X sintime_0_x 120				
			}

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

			texture_unit 1
			{
				texture compositors/Random3D.dds 3d
				tex_coord_set 1
				tex_address_mode wrap
				filtering linear linear linear
			}

			texture_unit 2
			{
				texture compositors/NoiseVolume.dds 3d
				tex_coord_set 2
				tex_address_mode wrap
				filtering linear linear linear
			}
		}
	}
}