3 ms·
WebGL is essentially OpenGL ES, the same API that is used on mobile phones and a subset of OpenGL that is used on desktops. A lot of the verbosity is typically
by fabian2k 9y ago
WebGL is essentially OpenGL ES, the same API that is used on mobile phones and a subset of OpenGL that is used on desktops.
A lot of the verbosity is typically hidden in helper functions or libraries. I've used twgl.js (https://twgljs.org/ https://twgljs.org/), and it's much less code (and less potential for stupid mistakes in the boilerplate) than the pure WebGL API.
There are still many concepts to understand, there is no way around it. You're mostly writing programs that are executed on the GPU itself, and you need to understand the limitations of that to write WebGL code.
There are higher-level abstractions on top of WebGL you can use, if you don't want or need the low-level access WebGL gives you.