vertex_program vp_Overlay_OneTex_Passthrough cg
{
  source overlay_pass_through_one_texture.vp.cg.c
  entry_point main
  profiles vs_1_1 vs_2_0 vs_2_x vs_3_0 arbvp1 
}

vertex_program vp_Overlay_TwoTex_Passthrough cg
{
  source overlay_pass_through_two_textures.vp.cg.c
  entry_point main
  profiles vs_1_1 vs_2_0 vs_2_x vs_3_0 arbvp1 
}

fragment_program fp_HorzBlur cg
{
  source horz_blur.fp.cg.c
  entry_point main
  profiles ps_2_0
}

fragment_program fp_VertBlur cg
{
  source vert_blur.fp.cg.c
  entry_point main
  profiles ps_2_0
}

fragment_program fp_Additive_TwoTex cg
{
  source additive_two_textures.fp.cg.c
  entry_point main
  profiles ps_2_0
}

vertex_program vp_PassThrough_OneTexture cg
{
  source pass_through_one_texture.vp.cg.c
  entry_point main
  profiles vs_1_1 vs_2_0 vs_2_x vs_3_0 arbvp1 
}

fragment_program fp_Filter cg
{
  source filter_poisson.fp.cg.c
  entry_point main
  profiles arbfp1 ps_2_0 ps_2_x ps_3_0 ps_3_x
}

material Pina/MainOverlayMaterial
{
  // preferred technique using vertex/fragment programs
  technique
  {
    pass
    {
      vertex_program_ref vp_Overlay_TwoTex_Passthrough
      {
      }
      fragment_program_ref fp_Additive_TwoTex
      {
        param_named distortFactor float 0
        param_named defaultFactor float 0.7
        param_named blurFactor float 0.4
      }
    }
  }
}

material Pina/HorzBlurMaterial
{
  technique
  {
    pass
    {
      vertex_program_ref vp_Overlay_OneTex_Passthrough
      {
      }
      fragment_program_ref fp_HorzBlur
      {
      }
    }
  }
}

material Pina/VertBlurMaterial
{
  technique
  {
    pass
    {
      vertex_program_ref vp_Overlay_OneTex_Passthrough
      {
      }
      fragment_program_ref fp_VertBlur
      {
      }
    }
  }
}

material Pina/HorzShadowBlurMaterial
{
  technique
  {
    pass
    {
      vertex_program_ref vp_Overlay_OneTex_Passthrough
      {
      }
      fragment_program_ref fp_HorzBlur
      {
      }
    }
  }
}

material Pina/HorzVertShadowBlurMaterial
{
  technique
  {
    pass
    {
      vertex_program_ref vp_Overlay_OneTex_Passthrough
      {
      }
      fragment_program_ref fp_VertBlur
      {
      }
    }
  }
}


material Pina/MainOverlayMaterial_
{
    // preferred technique using vertex/fragment programs
	technique
	{
		pass
		{
			vertex_program_ref vp_VertexLighting_OneLight_TwoTextures
			{
				param_named_auto MVPMatrix worldviewproj_matrix
			}
			fragment_program_ref fp_DiffuseLightmap_Default
			{
			}
		}
	}
}
