commonMain.phraseHash33_shader.kt Maven / Gradle / Ivy
The newest version!
package org.openrndr.shaderphrases.phrases
const val phraseHash33 = """#define MOD3 vec3(.1031,.11369,.13787)
vec3 hash33(vec3 p3) {
p3 = fract(p3 * MOD3);
p3 += dot(p3, p3.yxz+19.19);
return -1.0 + 2.0 * fract(vec3((p3.x + p3.y)*p3.z, (p3.x+p3.z)*p3.y, (p3.y+p3.z)*p3.x));
}"""
© 2015 - 2025 Weber Informatics LLC | Privacy Policy