feat(preview): fluted-glass wave generation animation - #73
Merged
Merged
Conversation
Replaces the img-fx mosaic loader with @paper-design/shaders-react's FlutedGlass in the wave shape — the vertical ribbed treatment the V1 loading frames depicted. The shader is an image filter, so the cut being generated shows through as the project's poster frame with contour distortion, and the ribs sweep gently by animating the texture shift uniform at ~30fps in a leaf component (the Player is unmounted while busy). Fresh projects without a poster fall back to a quiet surface under the label. Dropping img-fx also removes its three.js payload, halving the renderer bundle (2.2MB -> 1.15MB). Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Summary
Pre-alpha feedback: the in-frame generation animation now uses
@paper-design/shaders-react's FlutedGlass — wave grid + contour distortion — with the video being generated showing through behind the glass.GenerationGlassrenders the project's poster frame (project:thumbnail) through<FlutedGlass shape="wave" distortionShape="contour" fit="cover">; the ribs sweep back and forth by animating theshiftuniform (~30fps, rAF-throttled, state local to the leaf so nothing else re-renders — the Player is unmounted while busy anyway).img-fxremoved (this was its only consumer) — its three.js dependency goes with it, halving the renderer bundle (2,226 kB → 1,154 kB).Dependency change — restart
npm run devso vite re-optimizes deps.Test plan
Made with Cursor