Game asset processing3 min read

PNG gradient banding after export? Check 16-bit sample depth

Use a shallow gradient and the PNG header to find the stage where 16-bit sample precision drops to 8 bits.

PNG gradient banding after export? Check 16-bit sample depth
Two teal gradients, one smooth and one showing discrete tonal bands
Concept illustration

A game fog gradient can look clean in its source editor and band in the delivered PNG. Use a shallow ramp to find where the precision changed. The fixture covers grayscale and truecolor PNG assets whose source samples need more than eight bits.

Make a high-precision reference and an 8-bit control

  1. Keep a 16-bit grayscale master and draw a shallow ramp across 1,024 pixels. Make each neighboring value differ by only a few 16-bit steps. Export a same-size 8-bit control with dithering off.
  2. Read IHDR in a PNG chunk viewer. Both grayscale files use color type 0, but the bit depths should be 16 and 8. For grayscale and RGB PNG, that field describes a sample. An 8-bit RGB pixel still has three separate 8-bit samples.
  3. Read the same row using tooling that preserves 16-bit values. Many neighboring samples in the 8-bit control should collapse to the same value. Saving those values in a 16-bit container afterward cannot recover the missing steps.

Check the file you actually deliver

Compare the delivered size with Resource Compressor, then, if the output is PNG, inspect its header and the same pixel row. Identical resolution only confirms the grid size. If the file retains smooth high-precision samples and the game still bands, inspect the engine's imported texture format and display path next.

Ready to try "PNG gradient banding after export? Check 16-bit sample depth"?

Use our online tools to apply this tutorial to your indie game project right away.