UNPKG

@playcanvas/splat-transform

Version:

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

23 lines (22 loc) 881 B
/** * Pinhole per-splat tile-coverage count. * * Reads: screenX, screenY, radius, tsz, gox, goy, * uniforms.groupTilesX, uniforms.groupTilesY * Defines: writes coverage[i] * * Computes the splat's clamped tile bbox and stores the area * (`(maxTX - minTX + 1) · (maxTY - minTY + 1)`, capped at * MAX_COVERAGE_PER_SPLAT) into `coverage[i]`. The emit-pairs shader * later walks the same clamped bbox via its own pinhole tile-walk * chunk. * * Embeds the per-render MAX_COVERAGE_PER_SPLAT cap via JS-template * substitution because the value is fixed at shader-construction time * (it tracks the group's tile area). * * @param maxCoveragePerSplat - Hard upper bound on per-splat tile count. * @returns WGSL source for the pinhole tile-coverage block. */ declare const tileAabbPinhole: (maxCoveragePerSplat: number) => string; export { tileAabbPinhole };