Skip to content

WebGL

JavaScript API for rendering 3D graphics.

Source

142 resources imported from sjfricke/awesome-webgl, dedicated to the public domain (CC0 / Unlicense). Thanks to its maintainers and contributors. Part of the KEEBOX Library · Category: Front-End Development.

WebGL

Articles

Blog Series

Books

  • Interactive Computer Graphics: A Top-Down Approach with WebGL by Edward Angel and Dave Shreiner - Suitable for undergraduate students in computer science and engineering, for students in other disciplines who have good programming skills, and for professionals interested in computer animation and graphics using the latest version of WebGL.
  • Professional WebGL Programming by Andreas Anyuru - Everything you need to know about developing hardware-accelerated 3D graphics with WebGL.
  • Programming 3D Applications with HTML5 and WebGL by Tony Parisi - Create high-performance, visually stunning 3D applications for the Web, using HTML5 and related technologies such as CSS3 and WebGL—the emerging web graphics standard.
  • WebGL Beginner's guide by Diego Cantor and Brandon Jones - For JavaScript developer who wants to take the plunge into 3D web development via WebGL.
  • WebGL Hotshot by Mitch Williams - For web designer looking to expand your knowledge of 3D graphics concepts and broaden your existing skill set.
  • WebGL Insights by Patrick Cozzi - Presents real-world techniques for intermediate and advanced WebGL developers by assembling contributions from experienced WebGL engine and application developers, GPU vendors, browser developers, researchers, and educators.
  • WebGL Programming Guide: Interactive 3D Graphics Programming with WebGL by Kouichi Matsuda and Rodger Lea - WebGL Programming Guide will help you get started quickly with interactive WebGL 3D programming, even if you have no prior knowledge of HTML5, JavaScript, 3D graphics, mathematics, or OpenGL.

Bug Reporting

GLSL Editors

  • Fractal Lab - Online fractal explorer allowing you to explore 2D and 3D fractals.
  • GLSL Sandbox - Online live editor for fragment shaders.
  • Shader Toy - Most popular live editor for fragment shaders.
  • ShaderFrog - WebGL Shader Editor and Composer.
  • SHDR Editor - Live GLSL shader editor, viewer and validator.
  • ShaderExpo - Dependency free shader editor featuring inline error logs, auto completions, models and textures loading.
  • WebGL Playground - The editor lets you work on the JavaScript code and the GLSL vertex/fragment shaders (if you have any) at the same time in a convenient way. Everything is organized, formatted and highlighted properly, just as you would like.

References

Talks

Tools/Debugging

  • Khronos Dev Tools - Useful WebGL developer tools, intended to be used as an ES6 module.
  • Spector.js - Agnostic JavaScript framework for exploring and troubleshooting your WebGL scenes.
  • WebGL GLSL Editor - GLSL language support extension for Visual Studio Code.
  • WebGL Inspector - Tool inspired by gDEBugger and PIX with the goal of making the development of advanced WebGL applications easier.
  • WebGL Report - Way to view the details of what your browser supports for WebGL.
  • WebGL Support Stats - Interactive dashboard showing the support for WebGL features in different browsers and devices.
  • WebGL Texture Tester - Attempts to load one of every texture format supported by WebGL, intended to quickly show which formats your browser/device supports.
  • Web Tracing Framework - Set of libraries, tools, and visualizers for the tracing and investigation of complex web applications.

Chrome Specific Tools/Debugger

Firefox Specific Tools/Debugger

Tutorials

  • Directional Shadow Mapping - Concepts behind real time directional light shadow mapping.
  • Get Started Tutorial - Khronos' tutorial how to get up and running with WebGL.
  • Getting Started with WebGL - Mozilla Foundation guide to getting started with WebGL.
  • Learn WebGL - Tutorials Point set of article to get you familiar with WebGL terms.
  • Multitexturing using a Blendmap - How to use a blendmap to multitexture a terrain.
  • Particle Effects via Billboards - Create particle effects by applying a technique called billboarding.
  • The Book of Shaders - Gentle step-by-step guide through the abstract and complex universe of Fragment Shaders.
  • WebGL Academy - Simplified online IDE with automatic indentation, syntax highlighting for HTML, Javascript, GLSL and Python. You can run your code and download your projects.
  • WebGL Fundamentals - Series of online tutorials with code samples and live demonstrations.
  • WebGL Image Processing - Covers a range of Image Processing algorithms in WebGL such as Color Correction, Blend Modes, Thresholding, Dithering, Convolution and Film Grain.
  • WebGL Month – Daily WebGL tutorial for a month.
  • WebGL Workshop - Interactive workshop to get you up and running with WebGL.
  • A tutorial on infinite canvas with WebGL - A hands-on tutorial for building a GPU-accelerated infinite canvas in the browser, with first-class WebGL support (and WebGPU) via a unified graphics API—covering ECS, SDF-based 2D primitives, GPU text, and tile-based rendering, by @xiaoiver.

Videos

WebGL 2

Articles

References

Tutorials

Videos

WebXR / WebVR

References

Platforms

  • JanusVR - Webpages as collaborative 3D webspaces interconnected by portals.

Frameworks

Libraries

Engines and Frameworks

  • Babylon.js - Complete JavaScript framework for building 3D games with HTML5, WebGL and Web Audio.
  • Blend4Web - Tool for interactive 3D visualization on the Internet.
  • ClayGL - WebGL graphic Library for building scalable Web3D applications.
  • CopperLicht - JavaScript library and WebGL 3D engine for creating games and 3D applications.
  • Hilo3d - WebGL rendering engine for 3D games.
  • PlayCanvas - Game engine platform to build interactive experiences.
  • Scene.js - Extensible WebGL-based engine for high-detail 3D visualisation.
  • Three.js - Aimed to create an easy to use, lightweight, 3D library.
  • Verge3D - an artist-friendly toolkit for creating 3D web experiences.
  • zephyr3d - A TypeScript-based 3D rendering engine with WebGPU/WebGL support.

2D

  • Phaser - Open source HTML5 2D game framework for Canvas and WebGL, supports mobile web browsers.
  • PixiJS - powerful 2D Javascript renderer based on WebGL.

Low-level Rendering

  • GLBoost - Rendering library for 3D graphic geeks.
  • Lightgl.js - Lightweight and explict library to help prototype.
  • Luma.gl - WebGL2 powered framework for GPU-powered data visualization and computation.
  • PicoGL.js - Minimal WebGL 2-only rendering library.
  • Pocket.gl - Fully customizable webgl shader sandbox to embed in your pages.
  • Regl - Light declarative and stateless library, functional abstraction for WebGL.
  • TWGL - Sole purpose is to make using the WebGL API less verbose.

Math

  • glMatrix - Javascript matrix and vector library for high performance WebGL apps.

Physics

  • Ammo.js - Direct port of the Bullet physics engine to JavaScript using Emscripten.
  • Cannon.js - Lightweight and simple 3D physics engine for the web.

Maps and Visualizations

  • Cesium - Open-source library for world-class 3D globes and maps.
  • Deck.gl - WebGL overlay suite for React providing a set of highly performant data visualization overlays.
  • Globedots - Dot-matrix globe on WebGL2 in 17 kB, with markers, arcs, labels, heat maps, and a day-night line.
  • leaflet-webgl-markers - Leaflet plugin for rendering millions of point markers on a single WebGL canvas, with FBO picking and zero redraw while dragging.
  • TradeCanvas - Financial charting library that draws candles, indicators and depth heatmaps with WebGL 2, falling back to Canvas 2D.
  • xeokit - Web Graphics SDK for AEC/BIM applications with 3D-tiles, real-world coordinates and double precision.

Computer Vision (GPGPU)

  • GammaCV - WebGL accelerated Computer Vision library for browser.
  • Speedy Vision - GPU-accelerated Computer Vision library for JavaScript.

Particles and Effects

  • NixieFX - Particle and VFX runtime for PixiJS and Three.js, authored in a browser-based editor.
  • Phenomenon - Very small, low-level WebGL library that provides the essentials to deliver a high performance experience.
  • textmode.js - Lightweight, framework-agnostic creative coding library for real-time ASCII and textmode graphics using WebGL2.
  • Vysmo Transitions - Tree-shakable WebGL 2 library of 60 endpoint-correct transitions with mesh and multi-pass support, ~5 KB gzipped.

WebAR

  • encantar.js - GPU-accelerated Augmented Reality library that works on any device (iOS, Android, desktops). Easy to use and requires no WebXR support.

Legacy / Unmaintained

  • GLGE - Javascript library intended to ease the use of WebGL.
  • OSG.js - WebGL framework based on OpenSceneGraph concepts to interact with WebGL.
  • Pex-gl - JavaScript libraries for computational thinking in Plask/Node.js and WebGL.
  • React 360 - Build VR websites and interactive 360 experiences with React (archived by Facebook).
  • Turbulenz - Modular 3D and 2D game framework for making HTML5 powered games for browsers, desktops and mobile devices.
  • Whitestorm.js - Framework for developing 3D web apps with physics.

Community