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

Depth issue on Safari

Open cihadturhan opened this issue 3 years ago • 2 comments

Safari: https://user-images.githubusercontent.com/3739536/108192698-a4f23f00-7125-11eb-9c90-a3e2b4382878.mp4 image

Chrome or Firefox: https://user-images.githubusercontent.com/3739536/108192859-d3701a00-7125-11eb-9a3f-082aa4f77ed3.mp4

Simplest reproducible code

import React from 'react'
import {EffectComposer, SMAA} from '@react-three/postprocessing'
import { SMAAPreset } from 'postprocessing'


export default function Effects() {
  return <EffectComposer depthBuffer={true} >
      <SMAA preset={SMAAPreset.HIGH}/>
    </EffectComposer>
}

One thing I noticed is, if you change a prop on EffectComposer and save, it fixes after hot reload. So I think this is a bug. Thanks

cihadturhan avatar Feb 17 '21 10:02 cihadturhan

Is it still present with v2?

talentlessguy avatar May 03 '21 09:05 talentlessguy

I haven’t tried.

I’ve resolved the issue by using logarithmic depth buffer then and the project has already been delivered.

Cihad Turhan

v 1 r t l @.***> şunları yazdı (3 May 2021 12:24):



Is it still present with v2?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/pmndrs/react-postprocessing/issues/65#issuecomment-831137575, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AA4Q7EBQMOS53Q7OQPJ6NBLTLZTUTANCNFSM4XYD6VXQ.

cihadturhan avatar May 03 '21 10:05 cihadturhan