Repository navigation
Conversation
Gradient lab: a ShaderGradient port (MIT, GLSL ported to plain three.js) as a gradientLab background node sampling a lazily drawn offscreen target; ribbon, sphere and water shapes; panel with Randomize and Copy as preset; static in VR and with reduced motion; index rows gain family + needs. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…two peers, N6, Quest probe) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.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.
65 gradient: the Gradient lab
A port of the ShaderGradient look (github.com/ruucm/shadergradient, MIT) inside the M2 background layer. The GLSL is ported to plain three.js; the React package is not used.
What it adds
gradientLabshader node (Background group). It samples an offscreen target that a lazy chunk draws (src/lib/gradientLab.js, 9.8 KB, loaded only when a background uses the node).src/lib/gradientLabCore.jsholds the pure rules: param schema, camera, synced clock, budget tiers, randomize, Copy as preset.family+needs. The loader drops rows that need a node this build lacks, and the picker lists the family as "Gradient · Name". The presets are in packs#21.src/lib/LICENSE-shadergradient.txt(ShaderGradient + webgl-noise MIT texts) and athird-party-noticesVENDORED entry.Gates
npm run buildrc=0; check-ratchet 299/39 = baseline; check:tokens / storage / zindex clean.tests/unit/gradientLab.test.js, 17).gradient-lab(in battery.json): ALL PASS.drawbefore B's next tick.🤖 Generated with Claude Code