What’s that magic computation in stb__RefineBlock?

from blog The ryg blog, | ↗ original
Back in 2007 I wrote my DXT1/5 (aka BC1/3) encoder rygdxt, originally for “fr-041: debris” (so it was size-constrained). A bit later I put up the source and Sean Barrett adapted it into “stb_dxt”, which is probably the form that most know it in today. It’s a simple BC1 encoder that gives decent quality, the […]