Skip to content

Conversation

@Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Jul 19, 2025

Related issue: -

Description

Physically correct DoF shaders are quite heavy so it would be nice to have something more lightweight. The idea of the PR is to decouple the out-of-focus blur from the DoF so developers can use blur effects of different quality and speed level. In this way, you can use hash, box or gaussian blur or whatever technique that suits best to the application. The DoF effect itself is so simple that isn't not worth to put in in a separate module. It's just inlined.

My goal is to enhance the existing DepthOfFieldNode by making input parameters more physically correct and also provide a higher quality DoF (the above blurs are no physically correct replacement for an optical lens blur). Developers can then choose between something physically correct/high-quality and a more cheap/simple solution.

image

@Mugen87 Mugen87 merged commit e2830ac into mrdoob:dev Jul 21, 2025
8 checks passed
@Mugen87 Mugen87 added this to the r179 milestone Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant