import { b as ShaderStore } from './index-BvJBnIUK.esm.js';
import { c as clipPlaneFragmentDeclaration, a as clipPlaneFragment } from './clipPlaneFragment-Bi5dfzo6.esm.js';
import { l as logDepthDeclaration } from './logDepthDeclaration-eG1BiqhU.esm.js';
import { f as fogFragmentDeclaration, l as logDepthFragment, a as fogFragment } from './fogFragment-D_XyIoIG.esm.js';

// Do not edit.
const name$1 = "gaussianSplattingFragmentDeclaration";
const shader$1 = `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$1]) {
    ShaderStore.IncludesShadersStore[name$1] = shader$1;
}
/** @internal */
const gaussianSplattingFragmentDeclaration = { name: name$1, shader: shader$1 };

// Do not edit.
const name = "gaussianSplattingPixelShader";
const shader = `#include<clipPlaneFragmentDeclaration>
#include<logDepthDeclaration>
#include<fogFragmentDeclaration>
varying vec4 vColor;varying vec2 vPosition;
#define CUSTOM_FRAGMENT_DEFINITIONS
#include<gaussianSplattingFragmentDeclaration>
void main () {
#define CUSTOM_FRAGMENT_MAIN_BEGIN
#include<clipPlaneFragment>
vec4 finalColor=gaussianColor(vColor);
#define CUSTOM_FRAGMENT_BEFORE_FRAGCOLOR
gl_FragColor=finalColor;
#define CUSTOM_FRAGMENT_MAIN_END
}
`;
// Sideeffect
if (!ShaderStore.ShadersStore[name]) {
    ShaderStore.ShadersStore[name] = shader;
}
const includes = [clipPlaneFragmentDeclaration, logDepthDeclaration, fogFragmentDeclaration, logDepthFragment, fogFragment, gaussianSplattingFragmentDeclaration, clipPlaneFragment];
for (const inc of includes) {
    if (!ShaderStore.IncludesShadersStore[inc.name]) {
        ShaderStore.IncludesShadersStore[inc.name] = inc.shader;
    }
}
/** @internal */
const gaussianSplattingPixelShader = { name, shader };

export { gaussianSplattingPixelShader };
//# sourceMappingURL=gaussianSplatting.fragment-SgB6a-8J.esm.js.map
