export declare const apply_marking = "\nfloat markingOpacity = clamp(material.a, 0.0, 1.0);\nif (uMarkingType == 1) {\n if (marker > 0.0 || markingOpacity == 0.0)\n discard;\n material = packDepthWithAlphaToRGBA(fragmentDepth, markingOpacity);\n} else {\n if (marker == 0.0)\n discard;\n float depthTest = 1.0;\n if (uMarkingDepthTest) {\n float markingDepth = unpackRGBAToDepthWithAlpha(texture2D(tDepth, gl_FragCoord.xy / uDrawingBufferSize)).x;\n depthTest = fragmentDepth >= markingDepth ? 1.0 : 0.0;\n }\n bool isHighlight = (uMarkerPriority == 1 && marker != 2.0) || (uMarkerPriority != 1 && marker == 1.0);\n float viewZ = depthToViewZ(uIsOrtho, fragmentDepth, uNear, uFar);\n float fogFactor = smoothstep(uFogNear, uFogFar, abs(viewZ));\n if (fogFactor == 1.0)\n discard;\n material = packMarkingMask(depthTest, isHighlight, 1.0 - fogFactor, markingOpacity);\n}\n";