Shader Basics
jame581/GodotPrompter
A skill your agent uses when implementing shaders — Godot shader language, visual shaders, common visual recipes, and post-processing effects
Expert Godot shader patterns for batch-safe hitflash, alpha-scissor foliage/dissolve, screenspace postFX, depth reconstruction, triplanar, and instance uniforms — not first-shader tutorials.
$ npx skills add thedivergentai/GD-Agentic-Skills --skill godot-shaders-basics -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install thedivergentai/GD-Agentic-Skills godot-shaders-basics --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/thedivergentai/GD-Agentic-Skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/godot-shaders-basics .claude/skills/godot-shaders-basics && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "godot-shaders-basics" agent skill from https://github.com/thedivergentai/GD-Agentic-Skills/tree/main/skills/godot-shaders-basics into .claude/skills/godot-shaders-basics/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "godot-shaders-basics", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/thedivergentai/GD-Agentic-Skills/tree/main/skills/godot-shaders-basicsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add thedivergentai/GD-Agentic-Skills --skill godot-shaders-basics -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install thedivergentai/GD-Agentic-Skills godot-shaders-basics --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/thedivergentai/GD-Agentic-Skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/godot-shaders-basics .agents/skills/godot-shaders-basics && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "godot-shaders-basics" agent skill from https://github.com/thedivergentai/GD-Agentic-Skills/tree/main/skills/godot-shaders-basics into .agents/skills/godot-shaders-basics/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "godot-shaders-basics", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add thedivergentai/GD-Agentic-Skills --skill godot-shaders-basics -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install thedivergentai/GD-Agentic-Skills godot-shaders-basics --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/thedivergentai/GD-Agentic-Skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/godot-shaders-basics .cursor/skills/godot-shaders-basics && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "godot-shaders-basics" agent skill from https://github.com/thedivergentai/GD-Agentic-Skills/tree/main/skills/godot-shaders-basics into .cursor/skills/godot-shaders-basics/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "godot-shaders-basics", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/thedivergentai/GD-Agentic-Skills.git --path skills/godot-shaders-basics--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add thedivergentai/GD-Agentic-Skills --skill godot-shaders-basics -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install thedivergentai/GD-Agentic-Skills godot-shaders-basics --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/thedivergentai/GD-Agentic-Skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/godot-shaders-basics .gemini/skills/godot-shaders-basics && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "godot-shaders-basics" agent skill from https://github.com/thedivergentai/GD-Agentic-Skills/tree/main/skills/godot-shaders-basics into .gemini/skills/godot-shaders-basics/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "godot-shaders-basics", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install thedivergentai/GD-Agentic-Skills godot-shaders-basicsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add thedivergentai/GD-Agentic-Skills --skill godot-shaders-basics -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/thedivergentai/GD-Agentic-Skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/godot-shaders-basics .github/skills/godot-shaders-basics && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "godot-shaders-basics" agent skill from https://github.com/thedivergentai/GD-Agentic-Skills/tree/main/skills/godot-shaders-basics into .github/skills/godot-shaders-basics/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "godot-shaders-basics", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add thedivergentai/GD-Agentic-Skills --skill godot-shaders-basics -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install thedivergentai/GD-Agentic-Skills godot-shaders-basics --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/thedivergentai/GD-Agentic-Skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/godot-shaders-basics .opencode/skills/godot-shaders-basics && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "godot-shaders-basics" agent skill from https://github.com/thedivergentai/GD-Agentic-Skills/tree/main/skills/godot-shaders-basics into .opencode/skills/godot-shaders-basics/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "godot-shaders-basics", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
godot-shaders-basicsExpert Godot shader patterns for batch-safe hitflash, alpha-scissor foliage/dissolve, screenspace postFX, depth reconstruction, triplanar, and instance uniforms — not first-shader tutorials.
Godot Shaders Basics is an agent skill from thedivergentai/GD-Agentic-Skills. Expert Godot shader patterns for batch-safe hitflash, alpha-scissor foliage/dissolve, screenspace postFX, depth reconstruction, triplanar, and instance uniforms — not first-shader tutorials. Trigger on draw-call batching breaks, discard vs depth-prepass, foliage shadows, post-process quads, or world-position FX. Keywords: instance uniform, ALPHASCISSOR, hintscreentexture, hintdepthtexture, global uniform, sampler2DArray, canvasitem, spatial, post-processing.
Its SKILL.md is about 3.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 20 other files, including scripts and reference files (for example `references/2d-effect-recipes.md`, `references/3d-and-postfx-recipes.md` and `references/expert-advanced-patterns.md`).
It sits in Game Development, covering Game development and Shaders. It works with Godot. The repository describes itself as: The official "Long-Term Memory" for Godot 4.7+ AI Agents. A high-density library of 99 expert skills and 27 genre blueprints, providing audited, strictly typed GDScript patterns… The licence is LGPL-3.0.
Read from SKILL.md and the folder at commit 4c4d0ff. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 13 files in scripts/, which the agent can run.
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
docs.godotengine.orgFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Godot Shaders Basics loads about 3.3k tokens when it runs, and up to ~5.3k if it reads all its reference files. Until then it costs about 122 tokens; SKILL.md has 945 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from thedivergentai/GD-Agentic-Skills at commit 4c4d0ff, republished under its LGPL-3.0 licence (© thedivergentai). 945 words, ~3,251 tokens.
.claude/skills/godot-shaders-basics/SKILL.md (or your agent's skills folder). This skill also uses 18 other files; get the full folder from GitHub.discard unconditionally for optimization — It prevents the depth prepass from working effectively. A discarded pixel still costs vertex processing; sometimes not rendering the object is better [1].if/else for dynamic states in high-performance shaders — GPUs hate branching. Use mix(), step(), and smoothstep() for mathematical, hardware-optimized selection [5, 21].if (v == 0.5) is unreliable. Use abs(a - b) < epsilon or step().POSITION to vec4(VERTEX, 1.0) for full-screen quads in 4.3+ — Godot 4.3 uses Reversed-Z depth; this will cause clipping. Use POSITION = vec4(VERTEX.xy, 1.0, 1.0) [8, 9].instance uniform. This allows unique values for thousands of nodes while maintaining a single draw call (batching) [10].TIME without a speed multiplier — Fragment speed should be controllable via uniforms to ensure consistency across different gameplay states.hint_source_color for color uniforms — Without it, the engine treats colors as linear math, leading to incorrect gamma and washed-out visuals in the inspector.fragment() that could be in vertex() — vertex() runs once per point; fragment() runs millions of times per frame. Interpolate values via varying instead.#define macros for dynamic runtime toggles — These create new shader permutations, causing massive compilation stutters when first encountered in-game. Use uniforms instead.reflect(dir, normal) on unnormalized vectors causes severe rendering artifacts and incorrect lighting math.fract() — Shifting UVs beyond 0.0-1.0 without repeat wrapping or clamping will sample edge pixels or return black, breaking texture consistency.MANDATORY for the matching effect. Do NOT Load beginner canvas_item tint recipes or built-in variable glossaries here.
| Goal | Script |
|---|---|
| Per-enemy hitflash without breaking batches | MANDATORY instance_uniform_hitflash.gdshader |
| Foliage wind + shadows | MANDATORY foliage_wind_sway_expert.gdshader (alpha scissor/hash — not unconditional discard) |
| Dissolve that keeps depth-prepass | MANDATORY dissolve_scissor_expert.gdshader |
| PostFX pixelate / stylize | MANDATORY screenspace_hex_pixelate.gdshader |
| Full-screen quad (Reversed-Z) | MANDATORY screenspace_full_quad.gdshader |
| Depth → world for water/fog | MANDATORY depth_world_reconstruction.gdshader |
| Grass flatten from player | global_grass_flatten.gdshader |
| UV-less cliffs/rocks | triplanar_world_mapping.gdshader |
| Unique textures on instanced meshes | instance_texture_array.gdshader |
| Vertex displacement terrain | noise_terrain_displacement.gdshader |
| Animate uniforms at runtime | shader_parameter_animator.gd |
| VFX port template | vfx_port_shader.gdshader |
Golden path for cutouts/dissolve: ALPHA_SCISSOR / alpha hash (see dissolve + foliage scripts) — not discard for optimization. NEVER list explains why.
Instance-uniform flashes; one material, many unique intensities.
Mask dissolve with ALPHA_SCISSOR for depth-prepass + shadows.
World-space wind sway for foliage batches.
global uniform player interaction flattening grass.
hint_screen_texture stylized postFX.
Reversed-Z-safe full-rect post pass.
hint_depth_texture → world position.
World-axis projection without UVs.
sampler2DArray + instance uniform for unique batched textures.
Vertex noise displacement.
Validated VFX shader template.
Tween/runtime uniform animation without AnimationPlayer.
Pre-warm shader pipelines during loading screens to avoid first-frame stutter.
vertex(); pass via varying.hint_source_color.LLM-ignorance rule: if a general agent would not know it before reading, it lives here or in
scripts/— never delete, only move.
| Topic | Reference |
|---|---|
| 2D dissolve/wave/outline | 2d-effect-recipes.md |
| 3D toon + vignette | 3d-and-postfx-recipes.md |
| Uniforms / built-ins | uniforms-and-builtins.md |
| Fog, compute, warmup | expert-advanced-patterns.md |
Progressive disclosure: open Official Documentation links only when researching a specific API; load Related Skills when routing work to a peer domain — do not preload the whole lattice.
canvas_item built-ins (UV, COLOR, TEXTURE, SCREEN_UV) for sprites, UI, and 2D post FX.spatial built-ins (ALBEDO, NORMAL, instance uniform, depth/screen textures) for materials and full-screen quads.set_shader_parameter / instance parameter API used by animators and hit-flash batching.hint_screen_texture, and compositing patterns for pixelate/vignette-style FX.VisualShaderNodeCustom extensibility covered in the expert patterns..gdshader assets.ALBEDO/EMISSION/light() output interacts with Forward+, GI, and fog volumes.instance uniform and avoiding unique materials.© thedivergentai, LGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 18 other files (scripts, references) in skills/godot-shaders-basics of thedivergentai/GD-Agentic-Skills.
Open the folder on GitHubat commit 4c4d0ff
Godot Shaders Basics next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Godot Shaders Basics this skillthedivergentai/GD-Agentic-Skills | 821 | — | ~3.3k | Automated safety check: Pass | LGPL-3.0 | |
| Shader Basicsjame581/GodotPrompter | 805 | — | ~3.7k | Automated safety check: Pass | MIT | |
| Godot Shader Fundamentals925236118/AlphaAgent | 103 | — | ~1.5k | Automated safety check: Pass | MIT | |
| Godot Shadersgamedev-skills/awesome-gamedev-agent-skills | 1.4k | — | ~1.4k | Automated safety check: Pass | Apache-2.0 | |
| Scenario Godot Shadersscenario-labs/skills | 946 | — | ~4.9k | Automated safety check: Pass | MIT | |
| Gamedev Shadersericrisco/rsc-harness | 180 | — | ~3.6k | Automated safety check: Pass | MIT |
jame581/GodotPrompter
A skill your agent uses when implementing shaders — Godot shader language, visual shaders, common visual recipes, and post-processing effects
925236118/AlphaAgent
Godot 4 Shader 基础语法与数学,包含类型系统、Uniform变量、内置函数及实用技巧. An agent skill from 925236118/AlphaAgent.
gamedev-skills/awesome-gamedev-agent-skills
Write Godot 4.7 shaders in the Godot Shading Language: canvasitem shaders for 2D and spatial shaders for 3D, with vertex/fragment functions, uniforms (sourcecolor, hintrange), TIME/UV animation, and…
scenario-labs/skills
A skill your agent uses when writing or fixing Godot 4.7 shaders: .gdshader code (spatial, canvasitem, particles, sky, fog), VisualShader graphs built in code, stylized or toon water, dissolve or…
ericrisco/rsc-harness
A skill your agent uses when authoring or debugging a shader, material, VFX, or full-screen post-process in a game engine — Godot 4.x .gdshader, Unity 6 URP/HDRP, Unreal 5.x Materials, effect…
925236118/AlphaAgent
Master Godot 4 GDScript patterns including signals, scenes, state machines, and optimization.
thedivergentai/GD-Agentic-Skills
Expert patterns for 2D animation in Godot using AnimatedSprite2D and skeletal cutout rigs.
thedivergentai/GD-Agentic-Skills
Expert patterns for 3D level design using GridMap with MeshLibrary, CSG constructive solid geometry, occlusion, and runtime GridMap builders.
thedivergentai/GD-Agentic-Skills
Expert patterns for migrating 2D games to 3D including node type conversions, camera systems (third-person, first-person, orbit), physics layer migration, sprite-to-model art pipeline, and control…
thedivergentai/GD-Agentic-Skills
Expert patterns for simplifying 3D games to 2D including dimension reduction strategies, 2.5D fake-depth, isometric ports, camera flattening, physics conversion, 3D-to-sprite art pipeline, and…
thedivergentai/GD-Agentic-Skills
Agentic eyes for Godot work: cross-platform screenshot CLI (asset/region/window/screen) to budgeted WebP, TEMP editor viewport bridge under .gdskills/, and Taste Receptor Atlas v2 (~237…
thedivergentai/GD-Agentic-Skills
Expert patterns for AnimationTree including StateMachine transitions, BlendSpace2D for directional movement, BlendTree for layered animations, root motion, transition conditions, advance…
Works with
Categories
Expert Godot shader patterns for batch-safe hitflash, alpha-scissor foliage/dissolve, screenspace postFX, depth reconstruction, triplanar, and instance uniforms — not first-shader tutorials. Godot Shaders Basics is an agent skill from thedivergentai/GD-Agentic-Skills. Expert Godot shader patterns for batch-safe hitflash, alpha-scissor foliage/dissolve, screenspace postFX, depth reconstruction, triplanar, and instance uniforms — not first-shader tutorials.
Godot Shaders Basics fits situations like: draw-call batching breaks; discard vs depth-prepass; foliage shadows; post-process quads.
Run `npx skills add thedivergentai/GD-Agentic-Skills --skill godot-shaders-basics -a claude-code`. Or copy the skill folder (skills/godot-shaders-basics in thedivergentai/GD-Agentic-Skills) into .claude/skills/godot-shaders-basics in your project. Claude Code loads it when a task matches its description.
Run `npx skills add thedivergentai/GD-Agentic-Skills --skill godot-shaders-basics -a codex`. Or copy the skill folder (skills/godot-shaders-basics in thedivergentai/GD-Agentic-Skills) into .agents/skills/godot-shaders-basics in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add thedivergentai/GD-Agentic-Skills --skill godot-shaders-basics -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/godot-shaders-basics, .gemini/skills/godot-shaders-basics, .github/skills/godot-shaders-basics and .opencode/skills/godot-shaders-basics in your project.
SKILL.md names no scripts, command-line tools or credentials: Godot Shaders Basics is instructions for the agent only.
SKILL.md names 1 domain. As links in the text: docs.godotengine.org. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Godot Shaders Basics is published under the LGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.3k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Godot Shaders Basics: Shader Basics (jame581/GodotPrompter, 805 stars), Godot Shader Fundamentals (925236118/AlphaAgent, 103 stars), Godot Shaders (gamedev-skills/awesome-gamedev-agent-skills, 1.4k stars) and Scenario Godot Shaders (scenario-labs/skills, 946 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
thedivergentai (a GitHub user) maintains it in thedivergentai/GD-Agentic-Skills, which has 821 GitHub stars. The repository holds 98 skills in this directory. The repository was last updated on September 9, 2026.
Source: thedivergentai/GD-Agentic-Skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.