Advertisement
Guest User

Light

a guest
Jun 18th, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.48 KB | None | 0 0
  1. struct v2f
  2. {
  3.     float4 ScreenPos;
  4.     float3 FarLeftUp;
  5.     float FarRightUpX;
  6.     float FarLeftDownY;
  7.     float4 Position :POSITION;
  8.     float2 UV;
  9. };
  10.  
  11. v2f vmain(uniform float4x4 WorldViewProj,uniform float3 VertexFarLeftUp,float4 Position:POSITION,float2 UV:TEXCOORD0)
  12. {
  13.     v2f OUT;
  14.     OUT.ScreenPos=mul(WorldViewProj,Position);
  15.     OUT.Position=OUT.ScreenPos;
  16.     OUT.FarLeftUp=VertexFarLeftUp;
  17.     OUT.FarLeftDownY=-OUT.FarLeftUp.y;
  18.     OUT.FarRightUpX=-OUT.FarLeftUp.x;
  19.     OUT.UV=UV;
  20.  
  21.    
  22.     return OUT;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement