gokayfem/glsl-studies
Media & DesignA collection of 307 procedural GLSL ES 3.00 shader studies for WebGL2, covering materials, terrain, fur, and more.
What it is
GLSL Studies is a library of 307 procedural graphics studies written in GLSL ES 3.00 for WebGL2. The studies are grouped into themed collections, including sculpt surfaces, materials, fur, fibres, leaves, terrain, volumes, interfaces, mechanical parts, construction and joinery, textiles, wear and ageing, liquids, ice, plant and animal structures, minerals, print, optics, and local deformation. Each study comes with a render preview and a shader or module file, so you can browse the gallery visually and then open the code behind a result you like.
Two integration styles are used. Most collections are standalone fragment shaders that draw a complete frame from a full-screen triangle. The sculpt and material collections are function modules that you append to a host shader after a shared common layer. Fibre, fur, and terrain collections have their own README or report files with controls and setup notes.
Running a study
For a standalone shader, render a full-screen triangle with a WebGL2 vertex shader and use the study file as the fragment shader. Set uResolution to the drawing buffer size in pixels; that uniform alone is enough for the mechanical, construction, textile, wear, liquid, ice, plant, animal, mineral, print, optics, and deformation collections. Optional uTime animates scenes that declare it, and uOpen switches between alternate states in newer studies. Fibres require uLightMask = 7 for all lights.
For a function module, start with #version 300 es and high-precision float and int declarations, append the collection's 00_common.glsl, then the numbered module. Sculpt 13 and 18 need 12_facetnoise.glsl inserted before the selected module. Supply the fragment output and main(). The README gives an example that appends sculpt's common layer and 01_terrace.glsl and displays the terrace height field running a study.
Collection-specific setup
Fibres have a fibre camera table with uniforms and reference cameras. Fur has a fur report covering sources, technique comparisons, QA sheets, and known limitations. Terrain has a terrain guide with controls. Leaf studies accept uLightPreset values 1–3 for backlight, raking light, or underside lighting, and the ginkgo supports a five-second wind loop with uWindStrength and uTime. Volume and interface studies each have their own README with running instructions and validation notes volume studies interface studies.
Constraints
The studies target GLSL ES 3.00 and WebGL2, so the host environment must support that combination. There is a compiler compatibility note for Clay Strips: glslang 16.6.0 needs CLAY_STRIPS_LENGTH_FIELD defined as stripLength before assembling the module. No source license is declared in the repository, so reuse terms are not stated.
The collections use different integration models; a standalone fragment shader cannot simply be dropped in where a function module is expected. References to external anatomical or rendering literature are documented in the fur report, but those references are not bundled as data or textures.
HotRepo's take
The project entered HotRepo's new-project list on 2026-11-29 with 41 stars gained in a window of about 90 minutes, reaching 158 stars and 12 forks. That speed is notable, but the recorded window is short and there is no cross-day series yet, so the star count supports only a statement about that day. For readers, the value is concrete: 307 individually linked shaders with previews and per-collection notes, rather than a single demo. The breadth of topics makes it useful as a reference for procedural shading techniques, especially when you want a working starting point for a specific surface or formation.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.
You might also like
- AIRzZ90/study-materials-forkA Tauri 2 desktop app for browsing and playing media, with React UI and hls.js playback.
- chadandyou/jramesInteractive engraved web graphic novel about Solana memecoins, built with React, Three.js, GLSL and Web Audio.
- guzhezao/needleAn interactive 3D vinyl turntable study with draggable records, two speeds and procedural audio.
- wrong-nebula/hypbrGenerate seamless, physically calibrated PBR material sets from procedural code, ready for game engines and 3D tools.
- storytold/materialcraftNode-based procedural PBR material designer in pure Rust that runs on desktop and the web.