I have a few cubes I’d like to outline. But I also have geometries (including a base plane) that I’d like to not be outlined. What I am facing, however, is that the outline is being rendered behind all elements that are not also being outlined even if their actual position is behind the outlined object. Could someone please help me fix this issue? My code and image are included
x
> export default function ThreeScene() {
> return (
> <div style={{ width: "100vw", height: "100vh" }}>
> <Canvas shadows>
> <ambientLight/>
> <directionalLight position={[5,5,5]} intensity={3} castShadow/>
> <directionalLight position={[-1,7,3]} intensity={2}/>
> <Selection>
> <EffectComposer autoClear={false}>
> <Outline blur visibleEdgeColor="black" hiddenEdgeColor="black" edgeStrength={100} width={800} />
> </EffectComposer>
> <Select enabled={true}>
> <Box position={[ 0, 0.5, 0 ]}/>
> <Box position={[ 0, 0.5, 2 ]}/>
> </Select>
> <mesh receiveShadow rotation={[-Math.PI / 2, 0, 0]} position={[0, -0.01, 0]}>
> <planeGeometry args={[1000, 1000]} />
> <meshStandardMaterial color="gray" />
> </mesh>
> </Selection>
> <OrbitControls makeDefault maxPolarAngle={Math.PI / 2}/>
> </Canvas>
> </div>
> )
> }