diff --git a/index.html b/index.html index a1ff7fc..9d1025f 100644 --- a/index.html +++ b/index.html @@ -50,9 +50,9 @@ float octavedPerlinNoise(vec3 P,int octaves,float persistence) { float total = 0.0; float frequency = 128.0; - float amplitude = 4.0; + float amplitude = 1.0; float maxValue = 0.0; - for(int i = 0; i < 8; i++) { + for(int i = 0; i < 6; i++) { total += noise((P*frequency)) * amplitude; maxValue += amplitude; @@ -78,10 +78,10 @@ } void main(void) { - float n = octavedPerlinNoise(vec3(gl_FragCoord.x*0.001,gl_FragCoord.y*0.007+uTime*0.00005,uTime*0.00005),8,2.0); //Should be scaled along arbitary axis + float n = octavedPerlinNoise(vec3(gl_FragCoord.x*0.001,gl_FragCoord.y*0.003+uTime*0.00005,uTime*0.00005),8,2.6); //Should be scaled along arbitary axis //float n = noise(vec3(gl_FragCoord.xy*0.01,uTime)); //vec3 cloudEffect = clouds(gl_FragCoord.x*0.005, gl_FragCoord.y*0.005); - vec3 color = n + (vec3(1., 1., 1.)/2.); //Scales the height off the waves (/8.0) + vec3 color = vec3(n) + (vec3(1., 1., 1.)/2.); //Scales the height off the waves (/8.0) gl_FragColor = vec4(color,1.0); } @@ -95,23 +95,57 @@