WebGL Shader Template

This is a template for getting started with WebGL. The code is on GitHub at nmattia/webgl-shader-template.

The animation above is generated on the fly via a WebGL fragment shader. With fragment shaders, you have control over each pixel's color, making it perfect for Creative Coding and generating textures and patterns procedurally.

WebGL runs on the GPU, allowing for smooth, high-frame-rate animations. One frame of the animation above is rendered in 30us (2021 laptop), equivalent to over 30 thousand frames per second.

This template has no dependencies and uses the WebGL API directly. See more in the GitHub repository.