clipPlaneFragment.js 852 B

123456789101112131415161718192021222324252627282930313233343536
  1. // Do not edit.
  2. import { ShaderStore } from "../../Engines/shaderStore.js";
  3. const name = "clipPlaneFragment";
  4. const shader = `#if defined(CLIPPLANE) || defined(CLIPPLANE2) || defined(CLIPPLANE3) || defined(CLIPPLANE4) || defined(CLIPPLANE5) || defined(CLIPPLANE6)
  5. if (false) {}
  6. #endif
  7. #ifdef CLIPPLANE
  8. else if (fClipDistance>0.0)
  9. {discard;}
  10. #endif
  11. #ifdef CLIPPLANE2
  12. else if (fClipDistance2>0.0)
  13. {discard;}
  14. #endif
  15. #ifdef CLIPPLANE3
  16. else if (fClipDistance3>0.0)
  17. {discard;}
  18. #endif
  19. #ifdef CLIPPLANE4
  20. else if (fClipDistance4>0.0)
  21. {discard;}
  22. #endif
  23. #ifdef CLIPPLANE5
  24. else if (fClipDistance5>0.0)
  25. {discard;}
  26. #endif
  27. #ifdef CLIPPLANE6
  28. else if (fClipDistance6>0.0)
  29. {discard;}
  30. #endif
  31. `;
  32. // Sideeffect
  33. ShaderStore.IncludesShadersStore[name] = shader;
  34. /** @internal */
  35. export const clipPlaneFragment = { name, shader };
  36. //# sourceMappingURL=clipPlaneFragment.js.map