@babylonjs/viewer
Version:
The Babylon Viewer aims to simplify a specific but common Babylon.js use case: loading, viewing, and interacting with a 3D model.
70 lines (66 loc) • 1.73 kB
JavaScript
import { S as ShaderStore } from './index-MZPybX0H.esm.js';
// Do not edit.
const name$1 = "clipPlaneFragmentDeclaration";
const shader$1 = `
varying fClipDistance: f32;
varying fClipDistance2: f32;
varying fClipDistance3: f32;
varying fClipDistance4: f32;
varying fClipDistance5: f32;
varying fClipDistance6: f32;
`;
// Sideeffect
if (!ShaderStore.IncludesShadersStoreWGSL[name$1]) {
ShaderStore.IncludesShadersStoreWGSL[name$1] = shader$1;
}
/** @internal */
const clipPlaneFragmentDeclarationWGSL = { name: name$1, shader: shader$1 };
// Do not edit.
const name = "clipPlaneFragment";
const shader = `
if (false) {}
else if (fragmentInputs.fClipDistance>0.0)
{discard;}
else if (fragmentInputs.fClipDistance2>0.0)
{discard;}
else if (fragmentInputs.fClipDistance3>0.0)
{discard;}
else if (fragmentInputs.fClipDistance4>0.0)
{discard;}
else if (fragmentInputs.fClipDistance5>0.0)
{discard;}
else if (fragmentInputs.fClipDistance6>0.0)
{discard;}
`;
// Sideeffect
if (!ShaderStore.IncludesShadersStoreWGSL[name]) {
ShaderStore.IncludesShadersStoreWGSL[name] = shader;
}
/** @internal */
const clipPlaneFragmentWGSL = { name, shader };
export { clipPlaneFragmentWGSL as a, clipPlaneFragmentDeclarationWGSL as c };
//# sourceMappingURL=clipPlaneFragment-C6Z5D7El.esm.js.map