clipPlaneVertex.js 840 B

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