GM Shaders

GM Shaders

10 Levels of Shader Math

An introduction to math for every level of programmer

Xor's avatar
Xor
Dec 06, 2026

Hey again! It’s been a while. Since I last wrote, I bought a house and got married. Feels good to be back!

I recently wrote my 10 levels of shader math, and today we will be taking a deeper dive into each one:

  1. Linear - e.g. Multiply color by a brightness scalar

  2. Steps - e.g. Floor coordinates for pixelation

  3. Vectors - e.g. Center and correct aspect ratios

  4. Geom…

Subscribe for free to continue reading

Enter your email and get every post from GM Shaders.
Already have an account? Sign in
© 2026 Xor · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for writing, podcasting, and media founders.