filterV.c 393 B

12345678910111213
  1. void main(
  2. float4 iPos : POSITION,
  3. float2 iTex0 : TEXCOORD0,
  4. out float4 oPos : POSITION,
  5. out float2 oTex0 : TEXCOORD0,
  6. uniform float4x4 MVP
  7. )
  8. {
  9. /* Convert vertex coordinates and pass texcoords to fragment shader */
  10. oPos.xyzw = mul( MVP, iPos ).xyzw;
  11. oTex0.xy = iTex0.xy;
  12. }