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

Try using exponentiated sine waves to perturb water surface normals #63

Open
depressed-pho opened this issue Feb 13, 2019 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@depressed-pho
Copy link
Owner

The shader currently uses Gerstner wave function for both geometric and normal perturbance, but it might be better to use exponentiated (possibly squared?) sine waves for the latter. This is because the soft edges of Gerstner waves tends to create line-like artifacts of specular light for non-directional light sources.

But it means that I will have to get partial derivations of such a wave function and thus strains my math brain.

@depressed-pho depressed-pho added the enhancement New feature or request label Feb 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant