-
I've got default scene with 1 mesh and background gradient applied to import '@/main.css'
import Level0 from '@/scenes/Level0'
import { Canvas } from '@react-three/fiber'
import { EffectComposer, Noise } from '@react-three/postprocessing'
import { StrictMode } from 'react'
import ReactDOM from 'react-dom'
ReactDOM.render(
<StrictMode>
<Canvas dpr={Math.min(devicePixelRatio, 3)}>
<Level0 />
<EffectComposer>
<Noise opacity={0.1} />
</EffectComposer>
</Canvas>
</StrictMode>,
document.getElementById('root')
) I'm seeing this strange outline whenever I add different effects (not just Here is another example using I'm not entirely sure why this is happening, as examples using postprocessing library seem to look really great. Will appreciate any ideas. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
try setting the clearcolor instead of a transparent backdrop. effects do not handle canvas transparency too well. <Canvas>
<color attach="background" args={["blue"]} /> |
Beta Was this translation helpful? Give feedback.
try setting the clearcolor instead of a transparent backdrop. effects do not handle canvas transparency too well.