Skip to content

Conversation

verekia
Copy link
Collaborator

@verekia verekia commented Oct 2, 2025

This is a first draft to refine the direction we want to go with the refactor.

  • The Neuro Noise definition file, and common params and types, have been moved to the vanilla package.
  • The default preset (still in the React package) now uses vanilla defs. Presets could be moved to vanilla too.
  • <NeuroNoise /> default props use vanilla defs and no longer rely on the default preset. So we can have different values for the props defaults and the default preset. For example, gray instead of the current blue if no colorMid is provided.
  • Leva now uses vanilla defs for min, max, and defaultValue. Similarly to the React package, we don't need to rely on deriving the default preset anymore.
  • Docs tables are still the same.

👉 This is still in a demo stage to have a first look at the refactor. To keep the diff readable, not all params are using the vanilla def yet, and params will be in object form to avoid having to use params.find() and as workarounds.

Copy link

vercel bot commented Oct 2, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
shaders-docs Ready Ready Preview Oct 2, 2025 2:10pm

@itsdouges
Copy link
Contributor

Seems straight forward, would want to eliminate the need for finds and type corercions before merging though! 🙏

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.

2 participants