Guest User

Untitled

a guest
Jul 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. VS_OUTPUT vs_main( VS_INPUT In )
  2. {
  3. VS_OUTPUT Out;
  4.  
  5. //Postions quad vertices at 4 corners of the screen..
  6. Out.screenPos = float4(sign(In.vertexPos.xy),0,1);
  7.  
  8. //Gives the world position of the vertices of the quad.
  9. float4 worldPos = mul(Out.screenPos, worldViewProjInv);
  10.  
  11. //Send the world position to the ps.
  12. Out.worldPos = worldPos;
  13.  
  14. return Out;
  15. }
Add Comment
Please, Sign In to add comment