Where are all the simple features in WebGL?

glBegin / glEnd and for each vertex drawing using glVertex I can understand that using arrays can be faster.

But where is glLoadIdentity ? glMultMatrix ? glTranslate ? glRotate ?

Why should we process all matrix materials ourselves?

+7
javascript webgl
source share
1 answer

WebGL is an Open ES 2.0 binding. OpenGL ES 2.0 (and modern OpenGL 3.2+) does not have these deprecated features, everything should be done in shaders and your own matrix libraries.

It's good that many matrix libraries are available for WebGL, one of the best / fast of which is glMatrix ( https://github.com/toji/gl-matrix ).

+16
source share

All Articles