@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.
61 lines (57 loc) • 1.8 kB
JavaScript
import { S as ShaderStore } from './index-MZPybX0H.esm.js';
// Do not edit.
const name$1 = "clipPlaneVertexDeclaration";
const shader$1 = `
uniform vClipPlane: vec4<f32>;varying fClipDistance: f32;
uniform vClipPlane2: vec4<f32>;varying fClipDistance2: f32;
uniform vClipPlane3: vec4<f32>;varying fClipDistance3: f32;
uniform vClipPlane4: vec4<f32>;varying fClipDistance4: f32;
uniform vClipPlane5: vec4<f32>;varying fClipDistance5: f32;
uniform vClipPlane6: vec4<f32>;varying fClipDistance6: f32;
`;
// Sideeffect
if (!ShaderStore.IncludesShadersStoreWGSL[name$1]) {
ShaderStore.IncludesShadersStoreWGSL[name$1] = shader$1;
}
/** @internal */
const clipPlaneVertexDeclarationWGSL = { name: name$1, shader: shader$1 };
// Do not edit.
const name = "clipPlaneVertex";
const shader = `
vertexOutputs.fClipDistance=dot(worldPos,uniforms.vClipPlane);
vertexOutputs.fClipDistance2=dot(worldPos,uniforms.vClipPlane2);
vertexOutputs.fClipDistance3=dot(worldPos,uniforms.vClipPlane3);
vertexOutputs.fClipDistance4=dot(worldPos,uniforms.vClipPlane4);
vertexOutputs.fClipDistance5=dot(worldPos,uniforms.vClipPlane5);
vertexOutputs.fClipDistance6=dot(worldPos,uniforms.vClipPlane6);
`;
// Sideeffect
if (!ShaderStore.IncludesShadersStoreWGSL[name]) {
ShaderStore.IncludesShadersStoreWGSL[name] = shader;
}
/** @internal */
const clipPlaneVertexWGSL = { name, shader };
export { clipPlaneVertexWGSL as a, clipPlaneVertexDeclarationWGSL as c };
//# sourceMappingURL=clipPlaneVertex-DrcLG8k3.esm.js.map