You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
N8AO ignores the EffectComposer camera and scene props #395
<N8AO> builds its N8AOPostPass from useThree()'s camera and scene instead of EffectComposerContext. When <EffectComposer camera={...} scene={...}> uses a camera or scene other than the canvas defaults, the composer renders depth from one camera while N8AO reconstructs positions with the other, so the ambient occlusion is misplaced. Changing the composer's camera prop does not update N8AO either.
Other effects (LensFlare, Outline, SelectiveBloom, GodRays, DepthOfField) and useDepthPicking already read the camera from EffectComposerContext.
Reproduction
constref=createRef()<EffectComposercamera={otherCamera}scene={otherScene}><N8AOref={ref}/></EffectComposer>// ref.current.camera is the default canvas camera, not otherCamera
Expected
N8AO uses the camera and scene that the EffectComposer renders with.
Activity
kvvasuu commentedon Oct 19, 2026
Fixed in #396. Thank you.