pull/65/head
Patricio Gonzalez Vivo 8 years ago
parent 519c62e9a4
commit a10d225516

@ -1,5 +1,5 @@
// Author: Stefan Gustavson
// Title: Worley noise
// Title: Worley noise 2x2
#ifdef GL_ES
precision mediump float;

@ -1,5 +1,5 @@
// Author: Stefan Gustavson
// Title: Worley noise
// Title: Worley noise 2x2x2
#ifdef GL_ES
precision mediump float;

Before

Width:  |  Height:  |  Size: 15 MiB

After

Width:  |  Height:  |  Size: 15 MiB

@ -161,7 +161,7 @@ In 2011, [Stefan Gustavson optimized Steven Worley's algorithm to GPU](http://we
Later in 2012 [Inigo Quilez wrote an article on how to make precise voronoi borders](http://www.iquilezles.org/www/articles/voronoilines/voronoilines.htm).
<a href="../edit.html#12/2d-voronoi.frag"><img src="2d-voronoi-long.png" width="520px" height="200px"></img></a>
<a href="../edit.html#12/2d-voronoi.frag"><img src="2d-voronoi.gif" width="520px" height="200px"></img></a>
Inigio's experiment on voronoi didn't stop there. In 2014 he wrote this nice article about what he call [voro-noise](http://www.iquilezles.org/www/articles/voronoise/voronoise.htm), and exploration between regular noise and voronoi. In his words:

@ -16,14 +16,19 @@ By doing the last to excersize you have manage to "modulate" a sine wave, and yo
Another interesting property of waves is their ability to add up. Add the following lines to the previus example and pay atention how the frequencies and amplitudes change conform we add different waves.
```glsl
<div class="simpleFunction" data="
float amplitud = 1.;
float frequency = 1.;
y = amplitud * sin(x * frequency);
float t = 0.01*(-u_time*130.0);
y += sin(x*2.1 + t)*4.5;
y += sin(x*1.72 + t*1.121)*4.0;
y += sin(x*2.221 + t*0.437)*5.0;
y += sin(x*3.1122+ t*4.269)*2.5;
y *= 0.06;
```
"></div>
* Experiment by changing their values.
* Is it possible to cancel two waves? how that will look like?

Loading…
Cancel
Save