Skip to content

fix: match raster minPixelSize culling threshold in compute GSplat renderer#8569

Merged
mvaligursky merged 1 commit intomainfrom
mv-fix-compute-minpixelsize
Apr 1, 2026
Merged

fix: match raster minPixelSize culling threshold in compute GSplat renderer#8569
mvaligursky merged 1 commit intomainfrom
mv-fix-compute-minpixelsize

Conversation

@mvaligursky
Copy link
Copy Markdown
Contributor

Fix minPixelSize culling threshold mismatch between the compute and raster GSplat renderers.

Changes:

  • Scale the minPixelSize uniform by 0.5 when passing it to the compute tile-count shader, aligning it with the raster vertex shader's convention where the pixel size metric is 2.0 * radius rather than just radius
  • Without this fix, the compute renderer was culling splats at roughly 2x the intended threshold, causing visible differences when switching between renderer modes

Made with Cursor

…nderer

The compute tile-count shader compared `sqrt(2*a)` against minPixelSize,
while the raster vertex shader compared `2*sqrt(2*lambda)` — a 2x factor
difference. Scale the uniform by 0.5 on the CPU side so both paths cull
at the same effective screen-space threshold.

Made-with: Cursor
@mvaligursky mvaligursky self-assigned this Apr 1, 2026
@mvaligursky mvaligursky merged commit 35ebcc2 into main Apr 1, 2026
8 checks passed
@mvaligursky mvaligursky deleted the mv-fix-compute-minpixelsize branch April 1, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant