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

Outline introducing lighting changes to my scene

Open saturn118 opened this issue 3 years ago • 0 comments

I have a piece of code that using the outline conditionally as shown below.

      {highlight ? (
        <EffectComposer multisampling={8} autoClear={false}>
          <Outline
            pulseSpeed={2}
            selection={[myMesh2]}
            visibleEdgeColor="white"
            edgeStrength={100}
            width={1000}
          />
        </EffectComposer>
      ) : null}

The outline behaviour works correctly but it's introuducing weird lighting behaviours. The first image is before it triggers, the second image is while it's active and the third is disabled after being triggered at least once. Does anybody know what the cause of this is? This is the only post processing effect that's being used. pp-proof

saturn118 avatar Jan 22 '22 07:01 saturn118