Repository navigation
feat(extensions): support terrain texture draping on WebGPU - #11169
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
53529fa to
49fdf1f
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 53529faa0a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
[Medium impact] The PR appears safe to merge; no blocking issues were found. SummaryAdds terrain texture draping and picking on WebGPU while restoring automatic draw-mode selection.
The latest changes clarify the documentation without changing runtime behavior. The earlier translucent-cover issue is fixed. No new actionable issues were found. Reviews (5) · Last reviewed commit: "docs: describe terrain draping in unrele..." · Reviewed by Greptile |
chrisgervang
left a comment
There was a problem hiding this comment.
Reviewed 3b81265; comments only at this point. One P1: the whats-new edit sits in the released v9.4 section, and Unreleased does not mention WebGPU draping.
WebGL code paths are unchanged apart from a picking clear-color fallback. The WebGPU drape tests ran and passed in the test-webgpu job.
P2: The terrain-extension-drape and terrain-extension-drape-fill-globe render cases still have skip: ['webgpu'] (test/render/test-cases/terrain-layer.spec.ts:69, :99). They are the only tests of a lit, textured TerrainLayer and of globe draping. Could we unskip them on WebGPU, or note why they stay skipped?
Labels: P1 settle before this is merged, P2 can follow, Non-blocking optional.
Generated by Claude Code
Background
Terrain texture draping overlays layers on the terrain surface. This completes the draping path after #10751.
Change List
Verified: build, lint, 202 node tests, and focused draping rendering/picking.
Note
Medium Risk
Expands WebGPU rendering paths by adding WGSL shader injections, render pass options, and picking support for terrain covers. The changes are largely additive and scoped to WebGPU terrain handling without affecting the existing WebGL implementation.
Overview
Enables terrain texture draping on WebGPU within
TerrainExtension, bringing feature parity with WebGL for rendering draped layers and picking objects on terrain surfaces.The WGSL terrain shader module adds fragment and color injections to sample and composite draped terrain cover textures using premultiplied alpha blending, while supporting object and layer ID encoding during picking passes via
isPickingCover. In addition, render target creation inutils.tsnow configures a defaultdepth24plusattachment on WebGPU to align with layer pipeline formats.TerrainExtensionandTerrainEffectremove the previous WebGPU restriction that forcedterrainDrawMode: 'offset', restoring automatic mode inference so non-extruded geometry layers default to'drape'.Reviewed by Cursor Bugbot for commit 66d111d. Bugbot is set up for automated code reviews on this repo. Configure here.