Unofficial WebGL examples for learnopengl.com
- written in C, compiled to WebAssembly
- shader dialect GLSL v450, cross-compiled to GLSL v100 (WebGL) and GLSL v300es (WebGL2)
- uses Sokol libraries for cross platform support
- last updated: February 04 2021
Getting started
Hello Triangle
Shaders
Textures
Transformations
Coordinate Systems
Camera
Lighting
Colors
Basic Lighting
Materials
Lighting Maps
Light Casters
Multiple Lights
Model Loading
Model
Advanced OpenGL
Depth Testing
Stencil Testing
Blending
Face Culling
Framebuffers
Cubemaps
Advanced GLSL
Geometry Shader
Webgl does not provide support for geometry shaders. As an alternative the following examples emulate the behavior by using data textures in the vertex shader.