Skip to content

Conversation

@neilrackett
Copy link
Contributor

@neilrackett neilrackett commented May 4, 2025

The Three.js FXAA implementation is fantastic, but the WebGL pass has always felt unnecessarily cumbersome and more complicated to use than it needs to be.

This pull request simplifies the creation and use of an FXAA pass by creating a new FXAAPass class that works in the same way as SMAAPass: rather than having to pass FXAAShader as a parameter of the ShaderPass class and manually manage the size of the pass, you simply create a single class instance which is automatically updated by the EffectComposer calling its setSize method.

@neilrackett neilrackett changed the title Fxaapass class Add FXAAPass class May 4, 2025
@Mugen87 Mugen87 added this to the r177 milestone May 5, 2025
@Mugen87 Mugen87 merged commit 984ca4a into mrdoob:dev May 5, 2025
11 checks passed
RuthySheffi pushed a commit to RuthySheffi/three.js that referenced this pull request Jun 5, 2025
* Added FXAAPass class

* Updated JSDocs and indentation

* Fixed typo in docs

* Update FXAAPass.js

* Update FXAAPass.js

Fix code style.

---------

Co-authored-by: Michael Herzog <[email protected]>
RuthySheffi pushed a commit to RuthySheffi/three.js that referenced this pull request Jun 5, 2025
* Added FXAAPass class

* Updated JSDocs and indentation

* Fixed typo in docs

* Update FXAAPass.js

* Update FXAAPass.js

Fix code style.

---------

Co-authored-by: Michael Herzog <[email protected]>
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.

2 participants