Repository navigation
@remotion/effects: Add turbulentDisplace() for animated distortion - #12355
Merged
Merged
Conversation
Contributor
Contributor
There was a problem hiding this comment.
ℹ️ Minor suggestions only.
Reviewed changes
- New
turbulentDisplace()WebGL2 effect (packages/effects/src/turbulent-displace/index.ts,shader.ts, top-level re-export) — nine displacement modes, fractional complexity, looping evolution, edge pinning with optional clamped sampling, schema, validation, and cache key. - Shared noise kernel extraction (
packages/effects/src/value-noise-shader.ts) — the value-noise functions were lifted out offractal-noise/shader.tsand re-interpolated by both shaders; the Fractal Noise shader is semantically unchanged (only an extra blank line). - Package registration —
bundle.tsentrypoint,package.jsonexports/typesVersions, and theEFFECT_CATALOGentry. - Docs — new
docs/effects/turbulent-displace.mdx, sidebar,articles.ts,Root.tsxstills/composition, demo registry, and rendered preview assets. - Verification — module-level review of the GLSL sampling math (confirmed the
readPixel/pixelY-flips cancel and the general path matchestexture(uSource, vUv)), plus reference checks on sibling effects and the registration surface.
deepseek-v4.1-flash | 𝕏
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Adds
turbulentDisplace()to@remotion/effectsfor animated, noise-driven distortion. Includes turbulent, bulge, twist and directional modes, fractional complexity, looping evolution, and edge pinning with optional clamped sampling. Color and alpha are warped together.Includes Studio controls, documentation, a melting-text demo, and rendered preview assets. The demo uses the live effect in supported browsers and a rendered video fallback elsewhere, with safe server-side rendering. Shares the existing Fractal Noise shader kernel without changing its generated shader. Adapted from EffectCraft, with its MIT license retained.
Validation
bun run buildbun run stylecheckThe standalone docs typecheck retains existing errors outside the new code; the added files and registrations have no errors.
Preview
Watch the rendered text demo
Interactive docs preview