feat: ReflectionProbeNode — zone-based IBL override composable (3.3.0)#677
Merged
ThomasGorisse merged 1 commit intomainfrom Mar 20, 2026
Merged
feat: ReflectionProbeNode — zone-based IBL override composable (3.3.0)#677ThomasGorisse merged 1 commit intomainfrom
ThomasGorisse merged 1 commit intomainfrom
Conversation
4274a98 to
436ce1c
Compare
Implements ReflectionProbeNode as a @composable that overrides a Filament scene's IndirectLight with a baked HDR Environment, either globally or within a spherical zone around a world-space position. - sceneview/…/node/ReflectionProbeNode.kt — standalone composable; evaluates camera-vs-zone distance each frame via SideEffect, restores the previous IndirectLight on disposal - SceneScope.kt — adds ReflectionProbeNode DSL wrapper with full KDoc - samples/reflection-probe/ — new sample: metallic sphere + HDR sky IBL driven by a global ReflectionProbeNode; reuses sky_2k.hdr from model-viewer - settings.gradle — includes :samples:reflection-probe Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
436ce1c to
0e4c737
Compare
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.
Summary
@Composablethat overrides the scene's indirect light (IBL) with a baked cubemap for a defined zoneradius <= 0): always applies the IBL — useful as a scene-wide environment overrideradius > 0): only applies when the camera is withinradiusmetres ofpositionDisposableEffectrestores the previousIndirectLighton disposal — safe to compose/decomposepriorityparameter reserved for future multi-probe blendingReflectionProbeNode(environment, position, radius, priority)samples/reflection-probe— metallic sphere with global IBL probe applied fromsky_2k.hdr; orbit camera; demonstrates the reflections updating as the environment changesRoadmap
Closes 3.3.0 item:
ReflectionProbeNode.Test plan
:samples:reflection-probe:assembleDebugReflectionProbeNode— previous IBL restored🤖 Generated with Claude Code