hlsl.clipdistance-2.vert 398 B

12345678910111213141516
  1. void main(out float4 pos : SV_Position,
  2. out float2 clip[2] : SV_ClipDistance, // array of vector float
  3. out float2 cull[2] : SV_CullDistance) // array of vector float
  4. {
  5. pos = 1.0f.xxxx;
  6. clip[0].x = 0.5f;
  7. clip[0].y = 0.6f;
  8. clip[1].x = 0.7f;
  9. clip[1].y = 0.8f;
  10. cull[0].x = 0.525f;
  11. cull[0].y = 0.625f;
  12. cull[1].x = 0.725f;
  13. cull[1].y = 0.825f;
  14. }