diff options
| author | Akshay Nair <phenax5@gmail.com> | 2026-10-17 20:25:20 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2026-10-18 01:53:46 +0530 |
| commit | d3b2736d64988af02b58e934d63fe1c2f0f38d6a (patch) | |
| tree | 3a99c36d32441c3ecca6f25be78b328a4046be3b /src/main/resources/shaders/modules | |
| parent | 65f4bae19a70ee2cb90043648d7e45b4a2275f7b (diff) | |
| download | art-playground-openrndr-d3b2736d64988af02b58e934d63fe1c2f0f38d6a.tar.gz art-playground-openrndr-d3b2736d64988af02b58e934d63fe1c2f0f38d6a.zip | |
Add koduvalmaster
Diffstat (limited to '')
| -rw-r--r-- | src/main/resources/shaders/modules/noise.glsl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/resources/shaders/modules/noise.glsl b/src/main/resources/shaders/modules/noise.glsl index ebedd6d..c831b6f 100644 --- a/src/main/resources/shaders/modules/noise.glsl +++ b/src/main/resources/shaders/modules/noise.glsl @@ -27,6 +27,12 @@ float random(vec3 scale, float seed) { seed); } +// From https://github.com/mir-one/fingerprints/blob/main/algo.glsl +vec2 fphash2(vec2 p) { + p = vec2(dot(p, vec2(63.31, 127.63)), dot(p, vec2(395.467, 213.799))); + return -1.0 + 2.0 * fract(sin(p) * 43141.59265); +} + // Fractal Brownian Noise float fbm(vec3 x, int octaves) { float v = 0.0; |
