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

Where does the turbulence calculation comes from #9

Open
davidAlgis opened this issue Jul 21, 2023 · 0 comments
Open

Where does the turbulence calculation comes from #9

davidAlgis opened this issue Jul 21, 2023 · 0 comments

Comments

@davidAlgis
Copy link

Hi,

In compute shader WavesTexturesMerger.compute where does this calculation comes from :

Turbulence[id.xy] = Turbulence[id.xy].r + DeltaTime * 0.5 / max(jacobian, 0.5);
Turbulence[id.xy] = min(jacobian, Turbulence[id.xy].r);

I see it's used for foam rendering, but I don't fully understand how it works.
Thanks in advance.

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

1 participant