Skip to content

Conversation

@neilrackett
Copy link
Contributor

@neilrackett neilrackett commented May 2, 2025

Description

This pull request adds a damp property to the WebGL AfterimagePass class to add clamping, avoid the need to set uniforms directly and bring it into line with the TSL version.

Code style is consistent with the existing codebase and this change has been applied to the webgl_postprocessing_afterimage example, which has been tested as working.

@neilrackett
Copy link
Contributor Author

Thanks for the feedback: done and done, and will keep them in mind for future PRs.

@neilrackett neilrackett changed the title Add clamped damp accessor to WebGL AfterimagePass class Add damp accessor to WebGL AfterimagePass class May 3, 2025
@Mugen87 Mugen87 merged commit 3be0076 into mrdoob:dev May 4, 2025
11 checks passed
@Mugen87 Mugen87 added this to the r177 milestone May 4, 2025
RuthySheffi pushed a commit to RuthySheffi/three.js that referenced this pull request Jun 5, 2025
* Added damp accessor with clamping to WebGL AfterimagePass

* Updated Afterimage example GUI

* Removed damp clamp and setter JSDocs, tweak getter JSDocs to include range
RuthySheffi pushed a commit to RuthySheffi/three.js that referenced this pull request Jun 5, 2025
* Added damp accessor with clamping to WebGL AfterimagePass

* Updated Afterimage example GUI

* Removed damp clamp and setter JSDocs, tweak getter JSDocs to include range
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