UNPKG

molstar

Version:

A comprehensive macromolecular library.

5 lines 491 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.check_picking_alpha = void 0; exports.check_picking_alpha = "\nfloat viewZ = depthToViewZ(uIsOrtho, fragmentDepth, uNear, uFar);\nfloat fogFactor = smoothstep(uFogNear, uFogFar, abs(viewZ));\nfloat alpha = (1.0 - fogFactor) * uAlpha;\nif (uAlpha < uPickingAlphaThreshold || alpha < 0.1)\n discard; // ignore so the element below can be picked\n"; //# sourceMappingURL=check-picking-alpha.glsl.js.map