In the previous chapter we learned that WebGL is a low-level 2D and 3D graphics API implementing the Kronos Group specification for OpenGL ES in the Web browser. The “ES” in OpenGL ES abbreviates the term “embedded systems.” By design, WebGL is optimized for devices such as phones and mobile headsets. The WebGL API enables developers to write JavaScript code with GLSL, the language used by OpenGL to run on graphics processors, to facilitate communication between a Web browser and a GPU.
As the WebGL API forms the foundation of the WebXR API, it is of value to understand what WebGL ...