ShadowMappingClearDepth.ankiprog 556 B

123456789101112131415161718192021222324
  1. // Copyright (C) 2009-present, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #include <AnKi/Shaders/Common.hlsl>
  6. #pragma anki technique vert pixel
  7. #if ANKI_VERTEX_SHADER
  8. Vec4 main(U32 svVertexId : SV_VERTEXID) : SV_POSITION
  9. {
  10. const Vec2 uv = Vec2(svVertexId & 1, svVertexId >> 1) * 2.0;
  11. const Vec2 pos = uv * 2.0 - 1.0;
  12. return Vec4(pos, 1.0, 1.0);
  13. }
  14. #endif // ANKI_VERTEX_SHADER
  15. #if ANKI_PIXEL_SHADER
  16. void main()
  17. {
  18. }
  19. #endif // ANKI_PIXEL_SHADER