@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
29 lines • 901 B
JavaScript
// Do not edit.
import { ShaderStore } from "../../Engines/shaderStore.js";
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 */
export const clipPlaneVertexWGSL = { name, shader };
//# sourceMappingURL=clipPlaneVertex.js.map