GLSL and Shadertoy shader skills for Claude Code, Codex, Cursor, Copilot and Gemini CLI. 186 functions, SDF raymarching, procedural terrain, water, clouds and generative art, with a bundler, checker and 11 examples.
Python agent-skillsclaude-codecodexcomputer-graphicscursorgemini-cligenerative-artgithub-copilotglslnoiseprocedural-artprocedural-generationraymarchingshadersshadertoysigned-distance-functionsterrain-generationwebglwebgl2
---
description: Procedural GLSL / Shadertoy shader work (SDF raymarching, noise, terrain, volumes, lighting, color)
globs: **/*.glsl,**/*.frag,**/*.fs,**/shaders/**
alwaysApply: false
---
Copy this file into your project's `.cursor/rules/`. Install the skill too (Cursor reads `~/.cursor/skills`,
`~/.claude/skills` and `.agents/skills`), so the rule can point at it.
- Use the `shader-art-coding` skill: find functions with `scripts/glsl_tools.py search`, call library functions by
name, then `bundle` and `check` the result.
- Shadertoy-compatible GLSL ES 3.00 with `mainImage(out vec4 fragColor, in vec2 fragCoord)`; no `#version`, no custom
uniforms, no `?:` on structs, no sine hashes.
- `#define DEBUG_MODE 0` (0 final, 1 distance, 2 normals, 3 ids, 4 steps, 5 masks, 6 lighting terms).
- Linear lighting, then exposure, then `tonemapAgX` per AA sample, then the average, then `linearToSrgb` once, then
`ditherTPDF`.