render_sequential - more like a supercut, but ok
[rmo-sketchbook.git] / gputimelines / www / shade / index.html
1 <html>
2 <head>
3 <title>async/shaders</title>
4 <script src="seatbelt.js"></script>
5 <script src="glhelper.js"></script>
6 <style>
7 body {
8   background-color: black;
9   margin: 0;
10   overflow: hidden;
11 }
12 </style>
13 </head>
14 <body>
15 <script>
16 var ego = new SuperEgo();
17 ego.connect();
18
19 var glitch = new Glitch();
20
21 var ddoc;
22
23 ego.onload = function() {
24     ddoc = ego.get("_design/shade");
25     _track_ddoc_shader(glitch, ddoc, "frag", function() {
26         glitch.loadImg("mosaic.png", 0, glitch.tick.bind(glitch));
27     });
28 }
29 </script>
30 </body>
31 </html>