We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e9b21b commit d5cdedfCopy full SHA for d5cdedf
part9 (Advanced Topics)/24_Webgl.API.js
@@ -0,0 +1,10 @@
1
+/*
2
+INFO: WebGL API
3
+A 3D & 2D rendering API based on OpenGL ES, using <canvas> to access GPU acceleration
4
+1. Works with WebGLRenderingContext for WebGL2
5
+2. Uses GLSL shaders for visuals
6
+3. Powerful, but steep learning curve
7
+*/
8
+
9
+const canvas = document.getElementById("c");
10
+const gl = canvas.getContext("webgl");
0 commit comments