Trying to convert old style bumpmap L6V5U5 to X8L8V8U8 so I can retain the signed texture (this is in dx9) and having a heck of a time…
using this code to turn 5/6 to 8 bits (from an r6g5b5 converter):
uint8_t u = src_r6g5b5[0] & 0x1f;
uint8_t v = ((src_r6g5b5[1] & 0x03) << 3) |(src_r6g5b5[0] >> 5 );
uint8_t l = src_r6g5b5[1] >> 2;
dst_argb[0] = (l << 2) | (l >> 4);
dst_argb[1] = (v << 3) | (v >> 1) & 0x07);
dst_argb[2] = ((u << 3) | (u >> 1) & 0x07); this and above to retain sign bit
dst_argb[3] = 255u;
anyone know why this doesn't seem to work at all?