Tue Aug 08 2017

WebGL Trees

This was a kata to write a simple recursive branching tree generator in plain old Javascript and WebGL. As you can see in the source, I wound up having to write my own functions to draw meshes and do matrix math. While a fun experiment, this really shows how something like Three.js should be the default starting point for WebGL projects since it includes most of the low-level boilerplate math and GL-management code while remaining agnostic to your higher-level code architecture.