@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.
55 lines (52 loc) • 1.57 kB
JavaScript
import { S as ShaderStore } from './index-FzOfPXLV.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;
}
// 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;
}
//# sourceMappingURL=clipPlaneVertex-D_rrr4Jo.esm.js.map