Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverse checkbox on smoke ring #33

Closed
wants to merge 3 commits into from
Closed

Reverse checkbox on smoke ring #33

wants to merge 3 commits into from

Conversation

verekia
Copy link
Collaborator

@verekia verekia commented Jan 23, 2025

reverse-checkbox.mov

@verekia verekia requested a review from StephenHaney January 23, 2025 05:40
Copy link

vercel bot commented Jan 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
shaders-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 25, 2025 8:08am

Copy link
Member

@StephenHaney StephenHaney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder about always putting speed and reverse at the end so it doesn't break up the sliders too much and is easy to find?

const matchingPreset = presets.find((preset) => {
// Remove anything present in the preset that is not a param
const { seed, ...rest } = preset.params;
// We might need to remove properties present in the preset that are not changeable params in the future
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I added this bit because it was causing it to crash when seed was provided by not expected.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed it because I thought all presets now had seed in Leva, but I now see that it's not always the case (dots grid doesn't have it, for example). I'll put it back 👍

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I'd actually like to not have seed in Leva unless it's a non-animated shader. It just seems to confuse folks.

@StephenHaney
Copy link
Member

I think Ksenia updated the smoke ring in #34 so I'll close this, thanks for making the example.

@uuuulala uuuulala deleted the reverse-checkbox branch January 31, 2025 15:34
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