UNPKG

@playcanvas/splat-transform

Version:

Library and CLI tool for 3D Gaussian splat format conversion and transformation

21 lines (20 loc) 910 B
/** * Equirect per-splat tile-coverage count. * * Reads: screenX, screenY, radius, tsz, gox, goy, * uniforms.groupTilesX, uniforms.groupTilesY * Defines: writes coverage[i] * * The X tile range can extend past the image edges into negative or * `> groupTilesX-1` indices — those represent the same splat seen * across the ±π longitude seam. Coverage is the raw X span (capped at * groupTilesX so a splat with radius > image_width doesn't emit * duplicate tile keys); emit-pairs walks [minTXraw .. maxTXraw] in * lock-step and applies a modular wrap when writing tile keys. Y is * clamped normally — equirect doesn't wrap across poles. * * @param maxCoveragePerSplat - Hard upper bound on per-splat tile count. * @returns WGSL source for the equirect tile-coverage block. */ declare const tileAabbEquirect: (maxCoveragePerSplat: number) => string; export { tileAabbEquirect };