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¶
- Context Loss & Preloading - How to manage WebGL when you run into the dreaded context lost.
- WebGL Off the Main Thread - How to use Web Workers in WebGL.
- Optimizing Scenes for Better WebGL Performance - optimization techniques that proved to work well for creating WebGL-based interactives.
- First steps in WebGL - Learn what WebGL is and how it works by drawing a triangle.
Blog Series¶
- Codeflow - Many blogs on different tricks and techniques.
- Real-Time Rendering - This is the blog for the book Real-Time Rendering.
- WebGL Insights - This is the blog for the book WebGL Insights.
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¶
- Chrome Bug Report - Chrome related bugs
- Khronos Github Issue Page - Spec or Conformance related bugs
- Mozilla BugZilla - Firefox related bugs
- WebKit Bugzilla - Safari related bugs
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¶
- Google Project ANGLE - Default WebGL backend for both Google Chrome and Mozilla Firefox on Windows platforms.
- Khronos Official Wiki - The official wiki for WebGL.
- WebGL Best Practices - Mozilla's official set of best practices.
- WebGL Errata - Known bugs in graphics drivers affect the conformance suite, and consequently, portability of code.
- WebGL Extensions - List of extensions for WebGL
- WebGL Reference Card - WebGL 1.0 API Quick Reference Card for printing.
- WebGL Source Code - Source code to both view and contribute.
- WebGL Spec Sheet - All the detailed information about WebGL.
Talks¶
- List of Presentations - List presented by Khronos of various WebGL related presentations.
- Next-Generation 3D Graphics on the Web - Talk at Google I/O 19 from Ricardo Cabello (MrDoob).
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¶
- GLSL Shader Editor Extension - Chrome DevTools extension to help you edit shaders live in the browser.
- Spector.js Extension - Explore and Troubleshoot your WebGL and WebGL2 scenes easily.
- Webgl Insight - Chrome extension WebGL debugging toolkit providing a variety of capabilities.
Firefox Specific Tools/Debugger¶
- Firefox Developer Tools - The official list of all of Firefox's debugger tools.
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¶
- An Introduction to WebGL Programming - 3 hour overview of WebGL by SIGGRAPH University.
- WebGL Tutorials - YouTube - Series of lecture style video tutorials from Indigo Code on YouTube.
WebGL 2¶
Articles¶
- WebGL 2 What's New - Look into the new features added in WebGL 2.
- What's Coming in WebGL 2.0 - Look into the upcoming features of WebGL 2.
- WebGL 2 SIGGRAPH Asia 2015 - Presentation by Zhenyao Mo, Ken Russell of Google during SIGGRAPH Asia 2015.
- WebGL 2 Lands in Firefox - Information the support for WebGL 2 starting with Firefox 51.
- WebGL 2 Basics - Blog post about getting started with WebGL 2.
- WebGL 2 New Features - Blog post about whats new and cool in WebGL 2.
- Zero Bytes of Geometry: A Metal Lattice Sphere-Traced in a 14.9 KB Page - Ray marching a signed distance field in raw WebGL 2, with an analytic environment in place of an HDR file and resolution adapted against the display refresh period.
References¶
- WebGL 2 Spec Sheet (Editor Draft) - All the detailed information about WebGL 2.
- WebGL 2 Reference Card - WebGL 2.0 API Quick Reference Card for printing.
- WebGL 2 Compatible Chart - Chart to show current browsers supporting WebGL 2
Tutorials¶
- WebGL 2 Fundamentals - Series of online tutorials with code samples and live demonstrations.
- WebGL 2 Samples - Great source of many different WebGL 2 work with very good commenting.
- WebGL 2 Examples - Rendering algorithms implemented in raw WebGL 2.
- WebGL 2 & GLSL Primer: A Zero-to-Hero, Spaced-Repetition Guide - Grok WebGL2 and GLSL through a sequence of guided lessons, each chunked into atomic Q&A cards, with hands-on projects and solution code integrated throughout.
Videos¶
- Fun with WebGL 2.0 - Video tutorial series on getting started with WebGL 2.
- WebGL 2.0 is Here: What You Need To Know - Khronos Webinar April 2017. - Slides
WebXR / WebVR¶
References¶
- Immersive Web Community Group - Group whose goal is to help bring high-performance Virtual Reality and Augmented Reality to the open Web.
- UX of VR - Curated list of resources to help create good UX in VR.
- WebXR Device API - The W3C draft API for WebXR.
- WebVR Spec - The official W3C WebVR spec (legacy).
Platforms¶
- JanusVR - Webpages as collaborative 3D webspaces interconnected by portals.
Frameworks¶
- A-Frame - Web framework for building virtual reality experiences.
- Primrose - Rapidly prototype VR applications in your browser.
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.