Guest User

Untitled

a guest
Jan 24th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. struct PS_INPUT
  2. {
  3. float4 pos : SV_POSITION;
  4. float3 tex : TEXCOORD0; // texture coordinate
  5. };
  6.  
  7. struct PS_OUTPUT
  8. {
  9. float4 color : SV_Target0;
  10. };
  11.  
  12. Texture2D tex;
  13.  
  14. SamplerState state {
  15. Filter = MIN_MAG_LINEAR_MIP_POINT;
  16. AddressU = CLAMP;
  17. AddressV = CLAMP;
  18. };
  19.  
  20. PS_OUTPUT main(PS_INPUT input) : SV_Target
  21. {
  22. PS_OUTPUT output;
  23.  
  24. output.color = tex.Sample(state, input.pos);
  25.  
  26. return output;
  27. }
Add Comment
Please, Sign In to add comment