I'm trying to create super simple Perlin noise clouds in a fragment shader, using the Noise function found here.
At low octaves my output is, for want of a better word, 'blobby'. I'd simply like to smooth out these blobby areas and have smooth noise but have it a little more detailed than just one octave.
Fragment shader:
#ifdef GL_ES
precision mediump float;
#endif
uniform float time;
uniform vec2 resolution;
// Noise related functions go here ..
float surface3 ( vec3 coord ) {
float frequency = 4.0;
float n = 0.0;
n += 1.0 * abs( cnoise( coord * frequency ) );
n += 0.5 * abs( cnoise( coord * frequency * 2.0 ) );
n += 0.25 * abs( cnoise( coord * frequency * 4.0 ) );
return n;
}
void main( void ) {
vec2 position = gl_FragCoord.xy / resolution.xy;
float n = surface3(vec3(position, time * 0.1));
gl_FragColor = vec4(n, n, n, 1.0);
}
Live example:
http://glsl.heroku.com/e#1413.0


Left is what I have at the moment. How would I be able to achieve something more inline with the right image?