PPBase.bslinc 494 B

1234567891011121314151617181920212223242526272829303132333435
  1. mixin PPBase
  2. {
  3. depth
  4. {
  5. write = false;
  6. read = false;
  7. };
  8. code
  9. {
  10. struct VStoFS
  11. {
  12. float4 position : SV_POSITION;
  13. float2 uv0 : TEXCOORD0;
  14. float2 screenPos : TEXCOORD1;
  15. };
  16. struct VertexInput
  17. {
  18. float2 screenPos : POSITION;
  19. float2 uv0 : TEXCOORD0;
  20. };
  21. VStoFS vsmain(VertexInput input)
  22. {
  23. VStoFS output;
  24. output.position = float4(input.screenPos, 0, 1);
  25. output.uv0 = input.uv0;
  26. output.screenPos = input.screenPos;
  27. return output;
  28. }
  29. };
  30. };