123456789101112131415161718192021222324252627282930313233343536 |
- // Do not edit.
- import { ShaderStore } from "../../Engines/shaderStore.js";
- const name = "clipPlaneFragment";
- const shader = `#if defined(CLIPPLANE) || defined(CLIPPLANE2) || defined(CLIPPLANE3) || defined(CLIPPLANE4) || defined(CLIPPLANE5) || defined(CLIPPLANE6)
- if (false) {}
- #endif
- #ifdef CLIPPLANE
- else if (fClipDistance>0.0)
- {discard;}
- #endif
- #ifdef CLIPPLANE2
- else if (fClipDistance2>0.0)
- {discard;}
- #endif
- #ifdef CLIPPLANE3
- else if (fClipDistance3>0.0)
- {discard;}
- #endif
- #ifdef CLIPPLANE4
- else if (fClipDistance4>0.0)
- {discard;}
- #endif
- #ifdef CLIPPLANE5
- else if (fClipDistance5>0.0)
- {discard;}
- #endif
- #ifdef CLIPPLANE6
- else if (fClipDistance6>0.0)
- {discard;}
- #endif
- `;
- // Sideeffect
- ShaderStore.IncludesShadersStore[name] = shader;
- /** @internal */
- export const clipPlaneFragment = { name, shader };
- //# sourceMappingURL=clipPlaneFragment.js.map
|