declare const _default: "\nuniform mat4 matrix_model;\nuniform mat4 matrix_view;\n#ifndef GSPLAT_CENTER_NOPROJ\n    uniform mat4 matrix_projection;\n#endif\n\n// project the model space gaussian center to view and clip space\nbool initCenter(vec3 modelCenter, out SplatCenter center) {\n    mat4 modelView = matrix_view * matrix_model;\n    vec4 centerView = modelView * vec4(modelCenter, 1.0);\n\n    #ifndef GSPLAT_CENTER_NOPROJ\n\n        // early out if splat is behind the camera\n        if (centerView.z > 0.0) {\n            return false;\n        }\n\n        vec4 centerProj = matrix_projection * centerView;\n\n        // ensure gaussians are not clipped by camera near and far\n        #if WEBGPU\n            centerProj.z = clamp(centerProj.z, 0, abs(centerProj.w));\n        #else\n            centerProj.z = clamp(centerProj.z, -abs(centerProj.w), abs(centerProj.w));\n        #endif\n\n        center.proj = centerProj;\n        center.projMat00 = matrix_projection[0][0];\n\n    #endif\n\n    center.view = centerView.xyz / centerView.w;\n    center.modelView = modelView;\n    return true;\n}\n";
export default _default;
