Skip to content

Add FXAAPass class#31044

Merged
Mugen87 merged 5 commits into
mrdoob:devfrom
neilrackett:fxaapass-class
May 5, 2025
Merged

Add FXAAPass class#31044
Mugen87 merged 5 commits into
mrdoob:devfrom
neilrackett:fxaapass-class

Conversation

@neilrackett

@neilrackett neilrackett commented May 4, 2025

Copy link
Copy Markdown
Contributor

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
Comment thread examples/jsm/postprocessing/FXAAPass.js Outdated
@Mugen87 Mugen87 added this to the r177 milestone May 5, 2025
@Mugen87 Mugen87 merged commit 984ca4a into mrdoob:dev May 5, 2025
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 <michael.herzog@human-interactive.org>
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 <michael.herzog@human-interactive.org>
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