refactor(webgl): remove dead tunnel layer + unused GLSL utils#27
Merged
Conversation
…ech-debt) Carried over from the satus starter / gpu-dithering prototype, never used by the shipped tool: - tunnel-rat + CanvasContext/useCanvas: both tunnels rendered .Out with no .In anywhere (Content renders directly inside <Canvas>). Dropped the dep, the hook, and the context provider. - lib/webgl/utils/noise.ts + glsl.ts: exported NOISE / MAP_RANGE, imported nowhere. - BLEND.SOFT_LIGHT: only BLEND.NORMAL is used. - RAF 'render' prop: always defaulted true, never passed. Behavior-preserving; verified render is identical.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
What this does
A
/zero-tech-debtpass onlib/webgl: removes plumbing that came from the satus starter / gpu-dithering prototype but is unused by the shipped tool. Behavior is identical — the dithering canvas renders exactly as before.Summary
tunnel-ratdep. BothWebGLTunnelandDOMTunnelrendered.Outwith no.Inanywhere — in spargo,<Content/>renders directly inside<Canvas>, so the tunnels,CanvasContext, anduseCanvaswere vestigial (satus used.Into inject WebGL from<Hero>, which we deleted).tunnel-ratis now only a transitive dep of drei.lib/webgl/utils/noise.ts+glsl.ts— exportedNOISE/MAP_RANGE, imported nowhere.BLEND.SOFT_LIGHT— onlyBLEND.NORMALis used by the dithering shader.RAFrenderprop — always defaultedtrue, never passedfalse.Test Plan
bun run buildgreentsc --noEmitcleanbiome checkclean (one pre-existing intentional effect-dep warning)