react-postprocessing icon indicating copy to clipboard operation
react-postprocessing copied to clipboard

When using `EffectComposer`and `GizmoViewport`, `GizmoViewport` disappears

Open shunmian opened this issue 1 year ago • 1 comments

Hi, I'm using EffectComposer to enable object selection. It works quite well. But when I add GizmoViewport from @react-three/drei, the GizmoViewport disappear, see code(uncomment line 28 in App.js) 截屏2024-04-25 14 31 05

shunmian avatar Apr 25 '24 06:04 shunmian

Workaround:

add renderpriority to gizmohelper: renderPriority={2}

<GizmoHelper alignment="bottom-right" margin={[80, 80]} renderPriority={2}>
      <GizmoViewport axisColors={["#9d4b4b", "#2f7f4f", "#3b5b9d"]} labelColor="white" />
</GizmoHelper>

HiceS avatar Feb 11 '25 20:02 HiceS