Every post on Fragment Shack belongs to a series, a short learning path you can read in order. New to graphics? Start with Graphics Fundamentals.
Tick off posts as you finish them with the Mark this post as done button at the end of each one, and your progress shows here and on the home page. It’s saved in this browser only, never sent anywhere.
How a graphics card turns a list of triangles into a picture. From pixels and meshes through matrices, cameras and shaders to depth and lighting. No experience needed.
The handful of maths ideas that graphics programming is built on, explained gently with things to drag around. Vectors, dot and cross products, angles and waves, blending between values, and rays. No maths background needed.
How images get wrapped onto 3D surfaces, and how the graphics card reads them without shimmering, blurring or banding. UVs, filtering, mipmaps, anisotropic filtering and colour spaces.
Drawing into textures instead of the screen, and what that makes possible. Transparency, blur, bloom, tone mapping, anti-aliasing and the full-screen passes behind a game's final look.
Making surfaces look detailed and solid. Bumps without extra triangles from normal maps, and shadows drawn by looking at the scene from the light's point of view.
Specific tricks shaders use, explained one at a time. Derivatives (ddx and ddy), and signed distance fields, from simple shapes to crisp text and whole 3D worlds drawn without triangles.
What makes drawing fast or slow, and what the graphics card is really doing about it. How thousands of shader copies run in lockstep, the hidden cost of helper pixels, and why drawing the same pixel twice costs time.