const TEST_PRECISION = /* glsl */ `\
// Enforce high precision for shaders for tests which are performed in a docker container

precision highp float;
`;
const PROD_PRECISION = /* glsl */ `\
`;
export function computePrecision() {
    var _a, _b, _c;
    const env = (_a = globalThis.process) === null || _a === void 0 ? void 0 : _a.env;
    const mode = (_c = (_b = env === null || env === void 0 ? void 0 : env["STORYBOOK_NODE_ENV"]) !== null && _b !== void 0 ? _b : env === null || env === void 0 ? void 0 : env["CYPRESS_NODE_ENV"]) !== null && _c !== void 0 ? _c : env === null || env === void 0 ? void 0 : env["NODE_ENV"];
    return mode && mode !== "production" ? TEST_PRECISION : PROD_PRECISION;
}
const PRECISION = computePrecision();
export { PRECISION };
//# sourceMappingURL=precisionForTests-shaders-glsl.js.map