# gokayfem/glsl-studies — AlpLab Radar Static Code Audit

- Ring: `trial`
- Category: `media`
- Overall score: `3.7/5`
- Implementation check: `verified`
- Maturity: `early`
- Audited commit: `eedc89ba8008` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-12-02T10:04:29Z
- Repository: https://github.com/gokayfem/glsl-studies
- Radar entry: https://radar.alplab.co/#repo/gokayfem/glsl-studies
- License: `MIT`
- Tags: `glsl`, `webgl2`, `procedural-graphics`, `raymarching`, `shaders`, `generative-media`

## Summary

Library of 454 standalone and modular procedural GLSL ES 3.00 fragment shaders (materials, volumes, fur, terrain, VFX) with rendered previews and per-file attribution.

## Implementation Check

README's standalone/module split matches code: leaves/lib/01_ginkgo.glsl `main()` renders a full frame from uResolution alone, and materials compose 00_common.glsl + 00_fibre.glsl exactly as documented.

## When to Use

Mine for production-grade procedural material, volume, fibre and VFX techniques to port into any WebGL2/ES 3.0 renderer, or use as few-shot examples for shader work. Not a runnable product: bring your own host harness.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 4.0/5 |
| usability | 3.5/5 |
| reliability | 3.0/5 |
| security | 4.5/5 |
| integration | 3.5/5 |

## Code Evidence

- leaves/lib/01_ginkgo.glsl `main()` is a complete standalone raymarcher (leafSDF, wind inverse map, Beer-Lambert SSS, refracting pinned dew) rendering from uResolution alone
- materials/lib/00_fibre.glsl `fibreLobes` implements analytic Marschner R/TT/TRT lobes plus `fibrePigment` (Chiang 2016); modules compose via 00_common.glsl as README describes
- ceramics/lib/01_crazed_celadon_crackle_glaze.glsl `shadeCeladon`: 5-slice parallax craze, Beer-Lambert Fe2+ absorption, GGX clearcoat, honoring uOpen/uLightMode/uCamMode defaults
- interfaces/examples/transport.glsl `crossing` does bisection-refined medium-boundary search with Fresnel/TIR; interfaces/README.md documents 2048-pixel numerical tumbler checks
- THIRD_PARTY_NOTICES.md carries MIT/CC0 notices for Hoskins, Quilez, Narkowicz, Hill, Appleby, Jimenez; credit.md maps every adapted snippet to its file
- fur/review/verification_summary.json records glslangValidator PASS 10/10 with bounded luminance ranges; FUR_REPORT.md states the QA harness is not part of the repo

## Issues Found

- No tests, CI, or render harness in-repo; validation rests on committed QA artifacts produced by out-of-repo tooling (stated in fibres/README.md and fur/FUR_REPORT.md)

## Key Risks

- Repo ships GLSL only: no host, build, or package; you must draw a full-screen triangle in WebGL2 and set uniforms yourself
- Module collections (sculpt, materials, volumes, interfaces) require manual concatenation in a documented order; one needs a glslang-specific CLAY_STRIPS_LENGTH_FIELD define
- Heavy per-pixel work: FUR_REPORT.md cites ~0.1-0.4 s/frame at 2 Mpx on an M-series GPU, so these are not low-end-mobile budgets
- Early repo: created 2026-11-27, 77 commits, 3 contributors, ~52% top-author share, no releases

## Reviewed Files

- `README.md`
- `AGENTS.md`
- `prompt.md`
- `LICENSE`
- `THIRD_PARTY_NOTICES.md`
- `fibres/README.md`
- `volumes/README.md`
- `interfaces/README.md`
- `terrain/README.md`
- `fur/FUR_REPORT.md`
- `fur/review/verification_summary.json`
- `leaves/lib/01_ginkgo.glsl`
- `materials/lib/00_common.glsl`
- `materials/lib/00_fibre.glsl`
- `sculpt/lib/01_terrace.glsl`
- `common/wind.glsl`
- `common/checks/geometry.glsl`
- `interfaces/lib/00_common.glsl`
- `interfaces/examples/transport.glsl`
- `ceramics/lib/01_crazed_celadon_crackle_glaze.glsl`
