//
// ztest object (normal map in texunit1)
// 22-09-08: Created (boomer541)
// input from application


void main(
//	struct a2v
//      {
	float4 position : POSITION;
	float3 normal   : NORMAL;
//      };
//        a2v In,
		uniform float4x4 worldViewProj, // object to clip space
        uniform float4x4 WORLDVIEWIT
        )
{
  v2f Out;
  float4 N = mul(In.normal, -WORLDVIEWIT);  //normal to camera space
  Out.position = mul(In.position, worldViewProj); //vertex to clip space
  Out.normal = N;
  return Out;
}
