glBegin
/glEnd
and per-vertex drawing with glVertex
I can understand that using arrays can be faster.
But where is glLoadIdentity
? glMultMatrix
? glTranslate
? glRotate
?
Why do we have to handle all the matrix stuff ourselves?
WebGL is an Open ES 2.0 binding. OpenGL ES 2.0 (and modern OpenGL 3.2+) does not have these deprecated functions, everything must be done in shaders and or your own matrix libraries.
Good thing is that there is plenty of matrix libraries available for WebGL, one of the best/fastest being glMatrix ( https://github.com/toji/gl-matrix ).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With