/***************************************************************************
 *
 *	CRI Middleware SDK
 *
 *	Copyright (c) 2002-2004 CRI-MW
 *
 *	Appli.	: Sofdec Tutorial
 *	Module	: Sofdec Tutorial No.1(Playing a single Sofdec file)
 *	File	: smp_vert.cg
 *
 ***************************************************************************/

void main(float4 Pobject         : POSITION, 
          float2 YTexUV           : TEXCOORD0,
          uniform float4x4 ModelViewProj,
          uniform float4x4 ModelView,
          uniform float4x4 ModelViewIT,

          out float4 HPosition    : POSITION,
          out float3 Peye         : TEXCOORD0,
          out float2 ycoord       : TEXCOORD1
)
{
    HPosition = mul(ModelViewProj, Pobject);
    Peye = mul(ModelView, Pobject).xyz;
    ycoord = YTexUV;
}

/* end of file */
