Repository navigation
fix(extensions): apply terrain lighting and opacity to drapes - #11205
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. |
[Medium impact] The reviewed changes appear safe to merge; no new blocking issues were found. SummarySeparates terrain cover blending from ordinary mesh color filters, so WebGPU drapes receive lighting and opacity without overriding soft filtering.
Browser and render tests were not run during this review.
|
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
chrisgervang
left a comment
There was a problem hiding this comment.
Reviewed 54667a4 after merge; follow-ups below.
No P1s.
Labels: P1 settle before this is merged, P2 can follow, Non-blocking optional.
Generated by Claude Code
| float alpha = pixel.a + color.a * (1.0 - pixel.a); | ||
| vec3 rgb = pixel.rgb + color.rgb * color.a * (1.0 - pixel.a); | ||
| color = vec4(alpha > 0.0 ? rgb / alpha : vec3(0.0), alpha); |
There was a problem hiding this comment.
P2: The GLSL composite changed, but no WebGL test covers translucent terrain. The translucent-cover and opacity tests in terrain-webgpu.spec.ts still run only when backend === 'webgpu'.
Could we drop that guard on both tests so WebGL checks the same values?
Generated by Claude Code
| wgsl: {parameters: 'color: ptr<function, vec4<f32>>, geometry: FragmentGeometry'} | ||
| }, | ||
| { | ||
| name: 'DECKGL_FILTER_COLOR_BEFORE_LIGHTING', |
There was a problem hiding this comment.
Non-blocking: This new injection target is WGSL only, and only SimpleMeshLayer calls it. Could we add a TSDoc line saying so, or list it next to fs:DECKGL_FILTER_COLOR in writing-shaders.md?
Generated by Claude Code
Closes #11191.
Background
Drapes on WebGPU skipped terrain lighting and layer opacity. Translucent WebGL drapes mixed straight and premultiplied colors.
Change List
Verified: lint, 207 node tests, three browser regressions, and both WebGPU render fixtures.