Shader Art Coding (GLSL / Shadertoy)
/shader-art-coding
A tested library of 186 GLSL building blocks plus a workflow for procedural fragment shaders: SDF raymarching, 2D distance fields, noise and fBm, terrain, water, clouds, lighting and tonemapping. A Python bundler inlines only the functions a shader uses, and a checker lints it for the mistakes that break WebGL. Good for game backdrops, title screens, portals, pickups and full-screen effects.
- License
- MIT
- By
- By GameSkill
Tested by GameSkill
43/43 checks passed on WebGL2 (GLSL ES 3.00) in Chrome headless + glslang 16.6.0 (2026-11-09): trigger, a runnable example, a screenshot and self-check, one job per skill, and English + Chinese docs. Trigger checks match prompts against skill descriptions; they are not a live agent run.
Test reportWhat this skill does
When it triggers
00): SDF raymarching, procedural buildings/cities, 2D distance-field graphics, noise / fBm / domain warping, terrain, ocean/coastal water optics, clouds and other volumes, PBR lighting, color and tonemapping. …
GameSkill's tested copy
GameSkill's tuned build of this skill: the skill files from commit a56e7738d3f2, plus our runnable example, test report, self-check list and Chinese guide, put through our skill process.
License: based on gokayfem/shader-skills by gokayfem, under MIT. The ZIP keeps the license files (LICENSE) and lists everything GameSkill added in CHANGES.md.

Self-check
- 先说清画面:主体、镜头、材质、光、动作 / State the image first: subject, camera, materials, light, motion
- 用 search 找库函数,按名字调用,不手抄 / Find library functions with search and call them by name; never paste them
- bundle 之后 check 必须 0 错误(装了 glslangValidator 就会编译) / After bundle, check reports 0 errors (and compiles when glslangValidator is installed)
- 不用 sin 哈希、gl_FragColor、#version 和自定义 uniform / No sine hash, gl_FragColor, #version line or custom uniforms
- 留 DEBUG_MODE 和顶部命名的美术参数,并真的渲染出来看 / Keep DEBUG_MODE and named art constants at the top, and actually render and look
- 说明是怎么编译检查的;只写原创画面,不复刻现有游戏 / Say how it was compile-checked; original scenes only, never a remake of an existing game
Install
Tell your AI
Install the skill from https://gameskill.dev/skills/shader-art-coding/install.md
GameSkill's tested copy
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/shader-art-coding.zip -o /tmp/gameskill-shader-art-coding.zip
unzip -oq /tmp/gameskill-shader-art-coding.zip -d .claude/skills
rm /tmp/gameskill-shader-art-coding.zipWhat you get
- A GLSL library of 186 functions in 20 files (hash, noise, sdf2d, sdf3d, operators, domain, raymarch, camera, shading, water, volume, color, tonemap, post…), each tagged exact, bound or approx
- scripts/glsl_tools.py: search the library, bundle a shader into paste-ready Shadertoy code, check it (lint + glslangValidator), rebuild the index
- 11 render-verified templates: raymarched SDF scene, terrain, ocean, coastal water, volumetric clouds, 2D poster, patterns, procedural city and more
- 14 reference notes, from subject routing and the colour pipeline to water, terrain and debugging
Good fit
- Animated title-screen and menu backdrops, portals, pickups, skies and water for web games
- Fixing a shader that compiles on one GPU and breaks on another (sine hashes, integer literals, NaNs)
- Porting a Shadertoy-style effect into a game, with debug views and named art controls
Not for
- HLSL, Unity ShaderLab or compute shaders
- Godot's own shading language: port the bundled GLSL by hand or see godot-shaders
- Pixel-art effects as sprite sheets: see pixelfx
Try this prompt
Write an animated title-screen backdrop for my original cave-exploration game: a glowing crystal ring over drifting mist, WebGL2, with DEBUG views and named colour controls.About this skill
Shader Art Coding treats shader work as visual engineering: state the image, pick the smallest mathematical model that can make it (2D distance field, SDF raymarch, heightfield, volume), assemble it from a tested GLSL library by name, then bundle and check. The library has 186 functions across hashing, noise, 2D and 3D distance fields, operators, domain transforms, raymarching, cameras, shading, water, volumes, colour and tonemapping, each tagged with how exact its distance is. scripts/glsl_tools.py (Python 3 standard library) searches the library, bundles exactly the functions a shader uses into paste-ready Shadertoy code, and checks it for the mistakes that break WebGL: sine hashes, gl_FragColor, #version lines, custom uniforms, integer literals in float maths, NaN sources.
GameSkill's example is a title-screen backdrop for an original cave-exploration game, written against the library, bundled, checked, compiled with glslang and rendered in headless Chrome WebGL2 with a small player page any web game can reuse. We also compiled and rendered all 11 of the author's templates.
Related
- godot-shaders for Godot's own shading language.
- pixelfx for pixel-art effects exported as sprite sheets.
Requirements
- Python 3 standard library for the bundler and checker (no packages)
- glslangValidator (optional) so check also compiles the shader; without it the checker lints only
- A WebGL2 browser, Shadertoy, or an engine that takes a fragment shader to see the result
Topics
FAQ
AI 2D Asset & Sprite Pipeline Kit
Turn raw AI-generated video clips into crisp transparent 2D sprite sheets: chroma-key + despill commands, 0px foot-root anchor locking, non-linear hit-stop action pacing (4.33s -> 1.88s), and Phaser 3 / Godot 4 SpriteFrames exporters.
Based on gokayfem/shader-skills by gokayfem (MIT). The author's LICENSE and NOTICE files ship in the ZIP; ATTRIBUTION.md and CHANGES.md list the source commit and what GameSkill added.
Works well with
Skills the author points to as related or as the better fit for neighbouring tasks.
Godot Shaders
Godot 4.7 shaders for 2D and 3D: vertex and fragment code, uniforms, TIME and UV animation, and screen-reading effects.
Shader Programming
Write game shaders from cross-engine fundamentals — the vertex→fragment pipeline, coordinate spaces, UV math, and common 2D/3D effects (tint, UV scroll, dissolve, outline, fresnel rim, vignette) in GLSL with HLSL equivalents.
pixelfx
244 pixel-art effects written as code (fire, explosions, magic, weather, UI, pickups, critters) plus a draft, render, look, refine loop for making new ones; every effect exports a sprite sheet with Aseprite-style JSON for Godot, Unity, Phaser or any engine.
rng-vfx
A game VFX skill for coding agents: six styles (anime, toon, stylized, dark fantasy, pixel, realism) for Unity VFX Graph, Unreal Niagara and three.js, with a live three.js stand to verify frame strips.
Similar skills
Codixel
A pixel-art skill built on one idea: the agent writes code, it is not a painter. It asks for a reference image, then removes the background, pixelates, rigs with bones and animates it in code with a 2,000-line toolkit (core/pixel.js), showing every step on a sheet before making game files.
open-game-skills
An MIT pack of about 190 SKILL.md agent skills for game design: combat feel, camera, traversal, world, validation, 2D/Spine and art pipeline, with a dispatcher and adapters for Three.js, PixiJS, Phaser, Cocos, Godot, Unity and Unreal.
Video to Sprite Sheet (AI clip to looping game sprites)
A GameSkill original that turns a short clip of one character on a plain background, such as an image-to-video result, into a game-ready sprite sheet: automatic key colour, despill, hard alpha, an automatically found seamless loop, one crop box for every frame so nothing jitters, bottom-centre anchor, fixed cells and an optional colour budget or palette. Exports PNG, JSON and a Godot 4 SpriteFrames .tres. Python 3 standard library plus ffmpeg.
Agent Sprite Forge
Five agent skills that turn one approved character still into a game-ready sprite set: one image-to-video clip per action, then deterministic Python tools key, register, loop, retime, palette-lock and export it for Godot, Aseprite and the web. Also maps, tiles and code-drawn art.