doc 4 of 4

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_colorsource_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#

EffectWhere it lands in the gameTechnique
Hit/harvest flashcrop pops white on harvesttint uniform + a GDScript tween on it
Outlineselected plot / interactable highlightneighbor-sampling in fragment
Wind swaycrops idle in the breezeVERTEX offset by noise + TIME
Water shimmerpond, troughUV distortion before TEXTURE sample
Day/night tintevening falls on the farmfull-screen color grade — see below
Palette swapseasonal recolorsLUT texture lookup

Screen-wide effects (day/night lives here)#

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.