diff --git a/tutorials/reaction_torus.html b/tutorials/reaction_torus.html new file mode 100644 index 0000000..f947747 --- /dev/null +++ b/tutorials/reaction_torus.html @@ -0,0 +1,582 @@ + + + + + + + Reaction-Diffusion Torus Tutorial + + + + + + + + + + + + +
+
+ + +
+

SwissGL tutorial: Reaction-Diffusion donut

+
+ +
+ +
+
+
+

Starting with a quad

+
+
+ +
+
+ +
+
+
+

Creating the state buffer

+
+
+ +
+
+ +
+
+
+

Modifying the state

+
+

(click the canvas to reset)

+
+ +
+
+ +
+
+
+

Blur

+
+
+ +
+
+ +
+
+
+

Adding reaction term

+
+
+ +
+
+ +
+
+
+

More steps pre frame

+
+
+ +
+
+ +
+
+
+

Apply colormap

+
+
+ +
+
+ +
+
+
+

Tesselate and wrap the quad

+
+
+ +
+
+ +
+
+
+

Displace vertices

+
+
+ +
+
+ +
+
+
+

Rotate

+
+
+ +
+
+ +
+
+
+

Per-vertex colors ("varying")

+
+
+ +
+
+ +
+
+
+

Add background

+
+
+ +
+
+ + +
+
+
+

Final code (28 loc)

+
+
+ +
+
+ +
+

Bonus

+
+ +
+ + +
+
+ + + + + +