3 ms·
One other bit of advice - a lot of the tutorials out there start with matrix math and eventually get around to drawing a triangle. I recommend reversing that -
by aappleby 8y ago
One other bit of advice - a lot of the tutorials out there start with matrix math and eventually get around to drawing a triangle.
I recommend reversing that - ignore the math and just get a triangle on screen using a trivial shader (takes a few dozen lines of code in WebGL), then learn about how shaders and matrices work by applying them to your triangle.
- munchbunny 8y agoAbsolutely this. I did it the other way because I didn't know better, and it was remarkably boring for the first several days of trying to decipher tutorials. It would've been much more fun if I had just thrown a triangle on the screen and started playing around.