#include "common.cg"

vertexOutput main(appdata IN,
    uniform float4x4 ModelViewProj,
    uniform float4x4 ModelViewIT,
    uniform float4x4 ModelView
)
{
    vertexOutput OUT;
    float3 Pe = mul(ModelView, IN.Position).xyz;
    OUT.Peye = Pe;
    OUT.Pmodel = IN.Position;
    OUT.Neye = mul(ModelViewIT, IN.Normal).xyz;
    OUT.TexCoord = IN.UV;
    OUT.HPosition = mul(ModelViewProj, IN.Position);
    return OUT;
}
