Uh oh!
There was an error while loading. Please reload this page.
Refactor glow layer management to use exclusion instead of inclusion - #455
Conversation
Replace addIncludedOnlyMesh() approach with all-meshes emissive mode to restore correct depth-based rendering. Exclude the sky sphere explicitly via addExcludedMesh() to prevent it from being affected by the glow layer. Also update setSky() to register new sky spheres with any active glow layer, and fix clearEffects() to scan scene metadata instead of the now- unused includedOnlyMeshes list when deciding whether to dispose the layer. https://claude.ai/code/session_01XjT3aKdwLYiYfEiYRWwt26
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughModified glow layer management in material and scene modules. The glow layer now excludes the sky mesh during initialization and when setting the sky, and removes per-mesh inclusion registration in favor of scene-wide glow metadata scanning during cleanup. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Deploying flockdev with |
| Latest commit: | 2fb7fd7 |
| Status: | ✅ Deploy successful! |
| Preview URL: | https://3b7f5c60.flockdev.pages.dev |
| Branch Preview URL: | https://claude-fix-glow-rendering-or.flockdev.pages.dev |
Summary
This PR refactors the glow layer system to use an exclusion-based approach instead of an inclusion-based approach. The sky mesh is now explicitly excluded from the glow layer, and glow effects are applied to all meshes by default rather than maintaining a list of included meshes.
Key Changes
addIncludedOnlyMesh()to usingaddExcludedMesh()for the sky sphere, allowing the glow layer to affect all meshes except the sky by defaultaddIncludedOnlyMesh()call when applying glow to individual meshes, simplifying the glow effect application logicscene.js)Implementation Details
glowmetadata flag set, providing better lifecycle managementhttps://claude.ai/code/session_01XjT3aKdwLYiYfEiYRWwt26
Summary by CodeRabbit