Split out of erf.ts so that file stays free of three/tsl. The CPU
erfRef it exports is used by materials/gsplat/math.ts — a pure
number-in/number-out helper on the GLSL path — and a single three/tsl
import there was enough to pull the TSL/WebGPU cone into the eager bundle for
every WebGL session (issue #1679). Nothing about the maths changed; see
erf.ts for the polynomial, its coefficients, and the GLSL twin.
The TSL half of the erf approximation.
Split out of
erf.tsso that file stays free ofthree/tsl. The CPUerfRefit exports is used bymaterials/gsplat/math.ts— a pure number-in/number-out helper on the GLSL path — and a singlethree/tslimport there was enough to pull the TSL/WebGPU cone into the eager bundle for every WebGL session (issue #1679). Nothing about the maths changed; seeerf.tsfor the polynomial, its coefficients, and the GLSL twin.