glsl.app
Online Shader Editor
It is a free editor and sandbox for WebGL2 GLSL fragment shaders. It runs entirely in the browser, keeps your shaders in local storage and works offline as an installable app.
The editor is built on Monaco, the engine behind VS Code, with a custom GLSL IntelliSense made specifically for glsl.app: autocompletion and documentation of built-in functions, hovers, parameter hints, renaming, formatting and live error highlighting. Compose shaders with #include directives, including the LYGIA shader library straight from npm, tweak uniforms with sliders and color pickers configured by doc comments, use your own images and videos as textures and share shaders with a short link.
Changelog
Version 1.6 04 Dec 2026
Features
- Custom uniforms: besides the built-in ones, you can now declare your own
float,vec2,vec3,vec4andbooluniforms and tweak them in the floatingUniformspane. The pane can be dragged around with its header. Colors get a color picker (guessed by the uniform name or set with@color),vec2get 2D point controls. Both extended controls can be collapsed and expanded. - New setting
"Expand vector and color uniforms by default". Initially uniform controls are collapsed (2D point handles, color picker). With this setting they will be shown right away. - Uniforms and functions can be documented with JSDoc-like
/** */comments. Descriptions are shown in hovers, autocompletion and parameter hints, while tags configure uniform controls:/** * Background color * @default 0.1, 0.2, 0.3 * @color */ uniform vec3 u_background;@default: initial value, one number per component (trueorfalseforbool)@min,@max,@step: value limits, afloatwith both@minand@maxbecomes a slider@color,@vector: optionally force a color picker or a vector control. Most of the time it's guessed automatically by the editor.@param: function parameter description- Tags autocompletion: type
@or press Ctrl+Space inside a doc comment /**is closed automatically and Enter continues the comment with*- Invalid tag values are highlighted with warnings
- Texture slots now support loading from URL (one limitation is that remote should set
Access-Control-Allow-Origin).Texture URLs are saved to shader definition so they are loaded on app restarts and shader switches. - Tutorial shader is now available under
"Info"->"Tutorial"
Fixes
- Canvas resize handle no longer starts dragging the canvas, and the canvas stays within the viewport
- Invisible tooltips and text colors in tweak value widgets
- FPS graph is resized properly
- Proper app icon in Google search results
Disclosure
This update marks partial transition to AI-assisted coding started from the point where Claude picked up from my hand-written pieces for Uniforms pane. Having a solid hand-written base helps a lot, as AI-tools pick up greatly and generate code which meets standards of this repo.
Version 1.5.2 05 Jun 2026
Features
- Updated welcome shader with more tips and info about editor functionality
Fixes
- Tweak value widgets are properly displayed
- Align info pop-up to the right, so it's accessible on mobile
- Modal style fixes and QoL changes
Version 1.5.1 15 Sep 2025
Features
- Simplified Chinese localization thanks to @IM1903
- Language selection in settings
- Ability to backup entire shader library into single JSON file.
File -> Full Backup
(Turned out Chrome can just randomly wipe IndexedDB on account relogin).
Fixes
- Shader library modal now has proper size
Version 1.5 01 May 2025
Features
- Code formatting provider. Use Shift+Alt+F shortcut, command pallette Ctrl+Shift+P or right click ->
"Format Document". - Open shader export dialog shortcut Ctrl+S
- App scope utility
#includedirectives:#include <$shadertoy>- compatibility defines for easier import of shaders from Shader Toy#include <$glsl1>- compatibility for importing GLSL 1.0 shaders
- Minimap can be hidden in settings
- Glow UI can be disabled in settings
- UI rework and overhaul
- Better shaders storage and cache handling
- Stability and performance optimizations
Fixes
Full list of fixes and changes is available on GitHub.
Version 1.4 08 Jan 2024
Features
- New renderer with progressive enhancement for utilizing of OffscreenCanvas in a worker thread
- Shader parsing is moved to a worker thread as well
- Added manual shader recompilation
⚠️ Issues ⚠️
Large shaders may take long to recompile and since the GPU resources are not properly shared between main and worker threads there will still be a UI freeze.
To eliminate this issue you need to disable "Hardware Acceleration" in settings of your browser. Alternatively opt into manual recompilation.
Changes
- Textures now have mipmaps generated by default, so you can use
textureLod()to sample the levels
Version 1.3 07 Aug 2023
Features
- Now users can add up to 16 local textures (supports images and videos) to use inside of shaders. Just drag'n'drop a file (or multiple files at once) into editor view. Alternatively click texture slot and choose a file in a dialog.
Fixes
- Changelog dates were using 2022 year instead of 2023
Version 1.2 15 Jul 2023
Features
- Added online shader sharing with shorter links
- Added a new setting to choose the sharing method (online/offline)
Version 1.1 30 Apr 2023
Features
- Added lygia autocompletion for include directive
Version 1.0 20 Apr 2023
Public release
Features
- Code highlighting
- Autocompletion suggestions
- Including of other shaders and libraries
- Errors and warnings reporting and highlighting
- Vector fields autocompletion
- Variable renaming
- Foldable code regions
- Hover over variables, structures, functions for more info
- Color picker for vec3/vec4
- Tweak menu for vectors and numbers
- Portable canvas can be dragged and resized
- Ability to export shaders with optionally renaming inputs and uniforms along with expanding includes
- Local shaders storage
- Ability to share shaders by generating a link (which also works offline)
- Local cache storage for included shaders