© Rakesh Baruah 2021
R. BaruahAR and VR Using the WebXR APIhttps://doi.org/10.1007/978-1-4842-6318-1_2

2. Up and Running with WebGL

Rakesh Baruah1  
(1)
Brookfield, WI, USA
 

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 ...

Get AR and VR Using the WebXR API: Learn to Create Immersive Content with WebGL, Three.js, and A-Frame now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.