De-unify picking/shadows/custom-shaders; add GLSL/WGSL tabs#999
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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):
GSplatComponent(andenableIdsis just setup).app.scene.gsplat.alphaClipon the global GSplat settings; removed the Unified/Non-Unified subsections.app.scene.gsplat.material) and thegsplatModifyVSchunk. Kept the (now unified)multi-splatexample 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:
groupId="shader-language"+queryString="lang", so the choice syncs across pages and is URL-shareable).wgslPrism language indocusaurus.config.jsso WGSL blocks get syntax highlighting (previously only GLSL did).Mirrored across the Japanese (
i18n/ja) docs.Note:
docusaurus.config.jschanged, so a dev-server restart is needed locally to pick up the WGSL highlighting.