Refactor blocks texture array indices with row/column macro
Refactor blocks texture array indices with row/column macro

pbpaste|perl -pe'chomp;m/^\s+\{(\d+), (\d+), (\d+), (\d+), (\d+), (\d+)\}, (.*)/;sub rc{return sprintf"RC(%2d,%2d)",( ($_[0]/16)|0 ),($_[0]%16)}; $_="    {@{[rc $1]}, @{[rc $2]}, @{[rc $3]}, @{[rc $4]}, @{[rc $5]}, @{[rc $6]}}, $7\n"'

satoshinm/NetCraft,satoshinm/NetCraft,satoshinm/NetCraft,satoshinm/NetCraft,satoshinm/NetCraft