You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
seo-rii
changed the title
DepthOfField effect works strange with logarithmDepthBuffer
DepthOfField effect not focusing with logarithmDepthBuffer
Jan 29, 2023
logarithmicDepthBuffer is currently not supported and I'm not sure how difficult it would be to add support. Simply converting a log depth texture to linear depth defeats the purpose of encoding it in the first place, so depth values would probably need to be decoded on the fly inside the shaders on each read.
Description of the bug
DepthOfField effect is not focusing object when I turned logarithmDepthBuffer option to true.
To Reproduce
This is a link of example of react-three-fiber using DepthOfField effect.
https://codesandbox.io/s/bst0cy
And this is a link that only changed option logarithmDepthBuffer to true. Everything looks blurry.
https://codesandbox.io/s/monitors-forked-pl44hr?file=/src/App.js
Expected behavior
Blur effect should focus target object.
Screenshots
Without logarithmDepthBuffer
With logarithmDepthBuffer
Library versions used
Desktop
The text was updated successfully, but these errors were encountered: