Pixel-Art Game Recipes
The payoff doc: real effects for a real game, from sources that speak Godot natively. House rule for every recipe you take: read it line by line and explain it before it ships — a shader you can't explain is a shader you can't debug at 2am.
The two Godot-native sources#
- godotshaders.com — the community
shader library, filtered here to 2D (
canvas_item). Hundreds of recipes with live previews: outlines, hit-flash, palette swap, wind sway, water, CRT. Quality varies — likes are a rough signal, licenses are per-shader, and older entries use Godot 3 syntax (hint_color→source_color), which makes fixing them a nice exercise in itself. - FencerDevLog's Godot 4 shader series (video, 125+ episodes, actively updated) — guided builds, in gdshader, in Godot 4: fog, glow, water, wind, fireworks. The closest thing to a saint11 of Godot shaders.
The farming game's shortlist#
| Effect | Where it lands in the game | Technique |
|---|---|---|
| Hit/harvest flash | crop pops white on harvest | tint uniform + a GDScript tween on it |
| Outline | selected plot / interactable highlight | neighbor-sampling in fragment |
| Wind sway | crops idle in the breeze | VERTEX offset by noise + TIME |
| Water shimmer | pond, trough | UV distortion before TEXTURE sample |
| Day/night tint | evening falls on the farm | full-screen color grade — see below |
| Palette swap | seasonal recolors | LUT texture lookup |
Screen-wide effects (day/night lives here)#
- Screen-reading shaders (official) — sampling what's already drawn (heat haze, refraction).
- Custom post-processing (official) — full-screen passes: the day/night tint, scene transitions, vignettes.
The masters' shelf (after you've shipped three effects)#
- Inigo Quilez — palettes — the famous four-line cosine palette; a gorgeous day/night cycle generator. His 2D SDF page is the reference for shape math. Terse, GLSL, ports almost line-for-line.
- The Art of Code (video) — Shadertoy from absolute zero; the best pure-GLSL teaching on YouTube when you want depth.
Ship list#
In order of effort-to-delight: harvest flash → plot-select outline → crop wind-sway → day/night tint. Four effects, each one afternoon, and the farm stops looking like a prototype.