clipPlaneVertex.js 698 B

123456789101112131415161718192021222324252627
  1. // Do not edit.
  2. import { ShaderStore } from "../../Engines/shaderStore.js";
  3. const name = "clipPlaneVertex";
  4. const shader = `#ifdef CLIPPLANE
  5. fClipDistance=dot(worldPos,vClipPlane);
  6. #endif
  7. #ifdef CLIPPLANE2
  8. fClipDistance2=dot(worldPos,vClipPlane2);
  9. #endif
  10. #ifdef CLIPPLANE3
  11. fClipDistance3=dot(worldPos,vClipPlane3);
  12. #endif
  13. #ifdef CLIPPLANE4
  14. fClipDistance4=dot(worldPos,vClipPlane4);
  15. #endif
  16. #ifdef CLIPPLANE5
  17. fClipDistance5=dot(worldPos,vClipPlane5);
  18. #endif
  19. #ifdef CLIPPLANE6
  20. fClipDistance6=dot(worldPos,vClipPlane6);
  21. #endif
  22. `;
  23. // Sideeffect
  24. ShaderStore.IncludesShadersStore[name] = shader;
  25. /** @internal */
  26. export const clipPlaneVertex = { name, shader };
  27. //# sourceMappingURL=clipPlaneVertex.js.map