OpenGL for desktop applications has been around for a long time. But lately you’ve probably heard a lot about WebGL and how it is transforming graphics rendered in a web browser.
The consortium definition is quoted below. As highlighted in the quotation, here I will to show the similarities between desktop OpenGL and browser WebGL.
You can access the code at https://github.com/cognitivewaves/OpenGL-Render .
Desktop OpenGL :
Browser WebGL :
Hope it provides some insight into how OpenGL and WebGL are more similar than different.