error catch in chapter 12

pull/125/head
Patricio Gonzalez Vivo 8 years ago
parent b748d43c8a
commit 88af21945e

@ -45,7 +45,7 @@ In the above code, one of the points is assigned to the mouse position. Play wit
### Tiling and iteration
You probably notice that ```for``` loops and *arrays* are not very good friends with GLSL. Like we said before, loops don't accept dynamic limits on their exit condition. Also, iterating through a lot of instances reduces the performance of your shader significantly, because loops can't exit early - they always have to run to completion. That means we can't use this direct approach for large amounts on points. We need to find another strategy, one that takes advantage of the parallel processing archeture of the GPU.
You probably notice that ```for``` loops and *arrays* are not very good friends with GLSL. Like we said before, loops don't accept dynamic limits on their exit condition. Also, iterating through a lot of instances reduces the performance of your shader significantly. That means we can't use this direct approach for large amounts on points. We need to find another strategy, one that takes advantage of the parallel processing architecture of the GPU.
![](cell-01.png)

@ -1 +1 @@
Subproject commit 22050b571c923a702761844c91d26dfbbd841750
Subproject commit 5d41f8a8920815b0ea3f5f9185e4e7deeeafefde
Loading…
Cancel
Save