import type { TSLFloatNode, TSLFunction, TSLVec3Node } from '../types/tsl.cjs'; /** Position argument accepted by {@link getAlphaHashThreshold}. */ export type AlphaHashThresholdArguments = [position: TSLVec3Node]; /** * Empirically derived scale factor for stable hashed alpha thresholds. * Used to control the granularity of the hash pattern in volumetric rendering. * @constant {number} * @category TSL * @private */ export declare const ALPHA_HASH_SCALE = 0.05; /** * Generate a spatially-stable hashed alpha threshold for volumetric rendering. * * **Algorithm** * - Computes screen-space derivative to determine sampling density * - Generates hash value based on world position scaled to pixel grid * - Applies smooth remapping to avoid banding artifacts * - Returns threshold in [0..1] for alpha testing * * **Use Cases** * - Volumetric smoke/fog with stable dithering patterns * - Screen-space depth-aware alpha blending * - Avoiding temporal aliasing in volume rendering * * This implementation-level API is intentionally internal and has no public package import. * * @function getAlphaHashThreshold * @private * @category TSL * @tsl * @param {Node.} position World-space or view-space position for hash calculation. * @returns {Node.} Alpha threshold value in [0..1]. */ export declare const getAlphaHashThreshold: TSLFunction; export default getAlphaHashThreshold;