Skip to content

De-unify picking/shadows/custom-shaders; add GLSL/WGSL tabs#999

Merged
mvaligursky merged 1 commit into
mainfrom
mv-gsplat-deunify-shader-tabs
May 29, 2026
Merged

De-unify picking/shadows/custom-shaders; add GLSL/WGSL tabs#999
mvaligursky merged 1 commit into
mainfrom
mv-gsplat-deunify-shader-tabs

Conversation

@mvaligursky
Copy link
Copy Markdown
Contributor

Continues the Gaussian splat docs cleanup now that unified rendering is the only mode, and improves the shader code blocks.

De-unify (remove non-unified content and "unified mode" framing):

  • Picking — removed the "Unified vs Non-Unified Mode" section and the non-unified complete example; the page now plainly states the picker returns the GSplatComponent (and enableIds is just setup).
  • Shadows — the "Shadow Quality" section now sets app.scene.gsplat.alphaClip on the global GSplat settings; removed the Unified/Non-Unified subsections.
  • Custom Shaders — rewritten around the global scene gsplat material (app.scene.gsplat.material) and the gsplatModifyVS chunk. Kept the (now unified) multi-splat example and added a "How the Example Works" walkthrough; removed the non-unified per-component material content and the redundant helper/example sections.

Shader code blocks:

  • Custom Shaders and Splat Data Format now present GLSL/WGSL as synced tabs (shared groupId="shader-language" + queryString="lang", so the choice syncs across pages and is URL-shareable).
  • Registered the wgsl Prism language in docusaurus.config.js so WGSL blocks get syntax highlighting (previously only GLSL did).

Mirrored across the Japanese (i18n/ja) docs.

Note: docusaurus.config.js changed, so a dev-server restart is needed locally to pick up the WGSL highlighting.

Unified rendering is now the only mode, so remove the non-unified
content and "unified mode" framing from the Gaussian splatting pages:

- Picking: drop the unified-vs-non-unified section and the non-unified
  example; the picker returns the GSplatComponent directly.
- Shadows: collapse the alpha-clip guidance to the global GSplat setting.
- Custom Shaders: rewrite around the global scene gsplat material and the
  gsplatModifyVS chunk, keep the (now unified) example and explain how it
  works; drop the non-unified per-component material content.

Also improve shader code blocks:
- Custom Shaders and Splat Data Format now present GLSL/WGSL as synced
  tabs (shared groupId + queryString).
- Register the wgsl Prism language so WGSL blocks get syntax highlighting.

Mirrored across the Japanese (i18n/ja) docs.
@mvaligursky mvaligursky self-assigned this May 29, 2026
@mvaligursky mvaligursky merged commit e0d84f0 into main May 29, 2026
3 checks passed
@mvaligursky mvaligursky deleted the mv-gsplat-deunify-shader-tabs branch May 29, 2026 13:59
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