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

Add support for controlling the amount of immediate splats #7

Closed
3 of 4 tasks
MikkelBirkeholm opened this issue Sep 28, 2023 · 1 comment
Closed
3 of 4 tasks

Comments

@MikkelBirkeholm
Copy link

Before you start, please make sure to:

  • Read the doc
  • Have tried the latest version
  • Search to see if your issue already exists
  • Look for / ask questions on Stack Overflow

What problem does this feature solve?

Right now a random amount of splats are created. It would be fairly easy to change the boolean to a number. Use the value as a multiplier.

What does the proposed API look like?

WebGLFluid(document.querySelector('.canvas'), {
    IMMEDIATE: 0 //  Number of immediate splats
    }
@cloydlau
Copy link
Owner

  1. Upgrade to v0.3.4
  2. WebGLFluid(document.querySelector('canvas'), { IMMEDIATE: true, SPLAT_COUNT: 3, })

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

No branches or pull requests

2 participants