overte-HifiExperiments/script-archive/shaders/exampleSphereDisco.fs
2016-04-26 11:18:22 -07:00

17 lines
No EOL
366 B
GLSL

#line 2
float noise(vec3 v) {
return snoise(vec4(v, iGlobalTime));
}
vec3 noise3_3(vec3 p) {
float fx = noise(p);
float fy = noise(p + vec3(1345.67, 0, 45.67));
float fz = noise(p + vec3(0, 134.67, 3245.67));
return vec3(fx, fy, fz);
}
vec4 getProceduralColor() {
vec3 color = noise3_3(_position.xyz * 10.0);
return vec4(color, 1.0);
}