clipPlaneVertex.fx 300 B

123456789101112131415
  1. #ifdef CLIPPLANE
  2. fClipDistance = dot(worldPos, vClipPlane);
  3. #endif
  4. #ifdef CLIPPLANE2
  5. fClipDistance2 = dot(worldPos, vClipPlane2);
  6. #endif
  7. #ifdef CLIPPLANE3
  8. fClipDistance3 = dot(worldPos, vClipPlane3);
  9. #endif
  10. #ifdef CLIPPLANE4
  11. fClipDistance4 = dot(worldPos, vClipPlane4);
  12. #endif