depressed-pho / natural-mystic-shaders

Shader pack for Minecraft Bedrock aliming to be as realistic as possible
Creative Commons Zero v1.0 Universal
28 stars 3 forks source link

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

Open depressed-pho opened 5 years ago

depressed-pho commented 5 years ago

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.