Godot shaders
Godot 4.7 Shading Language syntax and pipeline.
Safety check
- Not rated by Claude yet. We only sell skills Claude has read and rated 7 out of 10 or higher, so this one is a free link to its author.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: godot-shaders
description: >
Godot 4.7 Shading Language syntax and pipeline: canvas_item, spatial and particle shaders,
built-ins, ShaderMaterial wiring, a headless compile check and 3.x porting. Use for a .gdshader,
a SHADER ERROR, shader parameters set from GDScript, or an effect that looks washed out or sorts
wrong. Not for effect maths such as dissolve or outline (`shader-programming`).
---
# Godot Shaders (4.x)
Write `.gdshader` files in the Godot Shading Language, wire them to materials, and prove
they compile. Targets **Godot 4.7** (see Version notes). The effect technique (the maths
of a dissolve, outline, toon ramp) lives in `shader-programming`; this skill covers
Godot's syntax, built-ins and pipeline.
## When to use
- Writing or porting `.gdshader` code, fixing a `SHADER ERROR`, wiring a
`ShaderMaterial`, picking render modes, or setting uniforms from code.
**When *not* to use:** cross-engine shading technique → `shader-programming`;
`StandardMaterial3D`, lights and environment → `godot-3d-essentials`. `GPUParticles`
node properties (as opposed to a `particles` shader) are outside this skill.
## Core workflow
1. **Pick the shader type** on the first line: `shader_type canvas_item;` for anything
`CanvasItem` (Sprite2D, TextureRect, Control) or `shader_type spatial;` for 3D meshes.
`particles`, `sky`, `fog` and `texture_blit` (4.7+, for `DrawableTexture2D`) exist too.
2. **Write the output the type expects:** `COLOR` in `canvas_item`; `ALBEDO`, `EMISSION`,
`ROUGHNESS`, `METALLIC` in `spatial`. `vertex()` moves geometry; `light()` replaces
lighting.
3. **Expose tunables as `uniform`s** with hints (`source_color` for colors, `hint_range`
for sliders) so they show in the Inspector and are color-managed.
4. **Wire the material.** In a `.tscn` this is plain text, so no Inspector clicks are
needed:
```ini
[ext_resource type="Shader" path="res://fx/scroll.gdshader" id="1_fx"]
...From gamedev-skills's repository, Apache-2.0 licence.
Related skills
-
Checked
Game Audio Mixing
Sets up game audio buses, volume sliders, music ducking and adaptive music for Godot, Unity or FMOD.
8/101 credit -
Checked
Game camera tuning
Builds and tunes follow, orbit and first person game cameras in Godot or Cinemachine so they stop jittering.
8/101 credit -
Checked
Game Enemy AI
Designs enemy AI with perception, pathfinding and steering so enemies chase fairly and never get stuck.
8/101 credit -
Checked
Game Loop and Timing
Makes movement, timers and physics behave the same at any frame rate in Unity, Godot, Bevy and web games.
7/101 credit -
Checked
Godot Game Testing
Writes and runs Godot tests with gdUnit4 or GUT, including scene tests and headless runs that report real results.
7/101 credit -
Checked
Game Security Review
Reviews Unity, Godot and Unreal code for cheats that hurt other players, purchase exploits and unsafe save files.
7/101 credit