SNES Color Math Explained: Additive Blending and Windows

This SNES color math explained essay covers how the PPU blends two screens with half-color mode and windows to fake glass, water, shadows and fog.
Open an accurate SNES emulator, toggle off a transparency layer, and a water scene collapses into a flat wall of tiles. That is color math, the most misunderstood part of the console’s picture processing unit. The SNES has no alpha channel and no per-pixel translucency. It has a 15-bit palette, two composited screens, and registers that add or subtract one color from another once per scanline. Understanding that hardware explains why 16-bit effects look the way they do, and why artists planned a whole scene around a single blend.
How the PPU stores a color
Color on the SNES is 15-bit RGB: five bits each for red, green and blue, giving 32 levels per channel and 32768 possible colors. Those colors sit in CGRAM, a palette of 256 entries that the PPU indexes. Every background tile and sprite points at one of those entries, so a scene is a grid of palette numbers, not RGB values. That matters because blending works on the final indexed colors after lookup, and because the number of colors on screen is bounded by those 256 slots. Color math is clever precisely because it produces new-looking shades from the same palette without adding a single entry.
What the color math registers actually do
The core idea is a main screen and a sub-screen. Normally only the main screen reaches the output. Color math takes a second composited image, the sub-screen, or a single fixed color, and combines it with the main screen by addition or subtraction. A control register picks the operation, which layers feed the sub-screen, and whether to use the fixed color. Half-color mode produces the glassy look: after an add it divides by two, giving a 50 percent blend. Subtraction does the opposite, darkening the main screen. Because the arithmetic runs on 5-bit channels, results clamp and can shift hue. None of this is per-pixel alpha; it is one operation applied uniformly to whichever pixels the settings select.
Why this is per-scanline, not per-pixel alpha
On modern hardware each pixel carries an alpha number and the blend is decided per pixel. The SNES has no such number. It builds two full images, then applies a single add or subtract setting to the finished pixels as the scanline is drawn. Those parameters live in registers set once and held for the whole line, which is why the effect is called per-scanline compositing. HDMA can rewrite them between lines to build a vertical gradient, but within a line every selected pixel gets the same operation. That is why a transparent region has a hard edge defined by a window rather than a soft falloff, and why a semi-transparent sprite still reads as a flat shape. The blend belongs to the line and the window, not to the sprite.
Windows, the brightness register, and clipping
Two more registers turn that blunt operation into something usable. Window registers define one or two horizontal bands and let you say whether color math applies inside, outside, or at their overlap, per layer. That is how a game makes a strip of water translucent while the HUD stays solid. The brightness register is separate: it scales the main screen by a 4-bit value, the standard way to fade to black or blank the screen during a transition. It changes brightness, not the blend ratio, so a fade and a translucency effect are different tools. The pipeline is: assemble two screens, clip with windows, add or subtract with optional half-color, then scale brightness. Four knobs and no shader.
How artists faked glass, water, shadows and fog
Once you see the knobs, the classic effects look like bookkeeping. Transparency means drawing the scene behind the object on the sub-screen and blending it back at half strength, clipped to the object’s shape with a window. Shadows mean subtracting a fixed color across a window. Fog and haze mean adding or subtracting a color across a wide band, often rewritten per scanline by HDMA so the haze thickens toward the bottom. Glass is transparency with a bright additive highlight on top.
| Effect | Register trick | Why it reads as depth |
|---|---|---|
| Glass and water | half-color add with the sub-screen behind | the background shows through at 50 percent |
| Shadows | subtract a fixed color inside a window | one region sits darker than the rest |
| Fog and haze | add or subtract per scanline via HDMA | a gradient builds toward the horizon |
| Screen fade | brightness register scales the main screen | the whole image dims uniformly |
Where you can see it on real cartridges
The SNES reached Japan in 1990 and North America in 1991, and the technique runs through its library. The translucent menu windows of Final Fantasy VI from 1994 are the cleanest half-color blend over a static field. Super Metroid, also 1994, uses windowed transparency and per-scanline changes for its flooded Maridia areas and glass tubing, which is why those rooms look wetter than the tile art allows. The Legend of Zelda: A Link to the Past from 1991 shows the brightness fades this register produces, and Chrono Trigger from 1995 lays subtractive shadows across its forest floors. I name these as illustrations of the mechanism, not as an exact register map of each scene.
The constraint I actually like
My honest view is that the limitation made the art better. With one blend setting per line, you could not sprinkle translucency anywhere; you designed a room around a single light source, one horizontal haze, or one clean pane of glass. That is why so many SNES backgrounds read as layered stage flats with a definite light direction rather than evenly lit 3D spaces. Modern blending is more capable and, to my eye, flatter to look at, because nothing forces a decision. To check any of this, open a hardware-accurate emulator with a register viewer, step into a water area, and watch the color math values hold steady while the scanline count climbs.
Related reading
If you want to keep digging into this corner of the library, these two posts on Roms Get go a little further:
