UNPKG

@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.

21 lines 702 B
// Do not edit. import { ShaderStore } from "../../Engines/shaderStore.js"; import "./logDepthFragment.js"; import "./fogFragment.js"; const name = "gaussianSplattingFragmentDeclaration"; const shader = `vec4 gaussianColor(vec4 inColor) {float A=-dot(vPosition,vPosition);if (A<-4.0) discard;float B=exp(A)*inColor.a; #include<logDepthFragment> vec3 color=inColor.rgb; #ifdef FOG #include<fogFragment> #endif return vec4(color,B);} `; // Sideeffect if (!ShaderStore.IncludesShadersStore[name]) { ShaderStore.IncludesShadersStore[name] = shader; } /** @internal */ export const gaussianSplattingFragmentDeclaration = { name, shader }; //# sourceMappingURL=gaussianSplattingFragmentDeclaration.js.map