finds.dev

lettier/3d-game-shaders-for-beginners

🎮 A step-by-step guide to implementing SSAO, depth of field, lighting, normal mapping, and more for your 3D game.

View on GitHubHomepage ↗

★ 20,014C++updated Jun 2023

// the take

A long-form written guide that walks through implementing classic real-time rendering techniques — normal mapping, deferred rendering, SSAO, bloom, screen-space reflections/refractions, depth of field, and more — using Panda3D and GLSL as the teaching vehicle. It's aimed at people who already know how to code but want to understand how these shader effects actually work, not just how to flip a toggle in Unity or Unreal.

Each technique has a real, runnable demo behind it (demonstration/ builds and runs on Linux) rather than isolated code snippets, so you can see the effect and poke at the actual .frag/.vert files. The writing explains the underlying math and reasoning (e.g. why SSAO samples a hemisphere, how the Fresnel term works) instead of just pasting shader code, which is what makes it port to Unity/Godot/Unreal as the README claims. Coverage is unusually broad for a single resource — deferred rendering, flow mapping, and screen-space reflection/refraction rarely show up together outside an engine's internal docs.

No commits since mid-2023, so there's nothing here on more modern techniques (compute-based SSAO, ray-traced reflections, mesh shaders) — it's a snapshot of 2018-era real-time rendering, well explained but not current. The demo is built on Panda3D, a niche engine almost nobody uses in production, so every technique requires you to mentally (or manually) translate the GLSL and pipeline setup into your actual engine — there's no Unity/Unreal/Godot sample code, just the promise that it's portable. It's a reference you read start-to-finish, not a structured course — no exercises, no progression, so retention depends entirely on you implementing it yourself elsewhere. Oddly, the author's license only covers the .cxx/.vert/.frag files — the actual write-ups and images, which are the real value here, are explicitly unlicensed for reuse.

We read the README, the directory tree and a key source file in November 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
20,014
Forks
1,486
Language
C++
Last commit
25 Jun 2023

// nearby

If 3d-game-shaders-for-beginners isn't quite it.

All repos →