Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: lens distortion effect #162

Merged
merged 3 commits into from
Jan 12, 2025

Conversation

damienmontastier
Copy link
Collaborator

This component introduces the LensDistortionEffect, which provides an abstraction for applying lens distortion with chromatic aberration blur. The <LensDistortionEffect> is specifically designed to add dynamic and immersive visual effects by distorting the scene with a customizable blur, enhancing artistic quality and realism.

  • Easy to set up — simply include it in your <EffectComposerPmndrs> pipeline.
  • Multiple options for controlling distortion intensity, principal point, focal length, and skew are available.
  • Fully supports different blend functions for enhanced customization.

For more details, see Lens Distortion Effect on pmndrs.


Local Playground — pnpm run playground

Local Documentation — pnpm run docs:dev


Feedbacks

On Leches, using Vector2, etc., is complicated. We can't adjust the step, etc.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@Tinoooo Tinoooo changed the title feat: add lens distortion feat: lens distortion Jan 12, 2025
@Tinoooo Tinoooo changed the title feat: lens distortion feat: lens distortion effect Jan 12, 2025
@Tinoooo Tinoooo merged commit 0ee8267 into Tresjs:main Jan 12, 2025
3 checks passed
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.

None yet

2 participants